blob: f43de0dd7b52f34e1b52ad4418ee649588dec34a [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
using System.Runtime.Serialization;
using Org.Apache.REEF.Utilities.Attributes;
namespace Org.Apache.REEF.Client.Avro
{
/// <summary>
/// Used to serialize and deserialize Avro record org.apache.reef.reef.bridge.client.avro.AvroAppSubmissionParameters.
/// This is a (mostly) auto-generated class. For instructions on how to regenerate, please view the README.md in the same folder.
/// </summary>
[Private]
[DataContract(Namespace = "org.apache.reef.reef.bridge.client.avro")]
public sealed class AvroAppSubmissionParameters
{
private const string JsonSchema = @"{""type"":""record"",""name"":""org.apache.reef.reef.bridge.client.avro.AvroAppSubmissionParameters"",""doc"":""General cross-language application submission parameters shared by all runtimes"",""fields"":[{""name"":""tcpBeginPort"",""type"":""int""},{""name"":""tcpRangeCount"",""type"":""int""},{""name"":""tcpTryCount"",""type"":""int""}]}";
/// <summary>
/// Gets the schema.
/// </summary>
public static string Schema
{
get
{
return JsonSchema;
}
}
/// <summary>
/// Gets or sets the tcpBeginPort field.
/// </summary>
[DataMember]
public int tcpBeginPort { get; set; }
/// <summary>
/// Gets or sets the tcpRangeCount field.
/// </summary>
[DataMember]
public int tcpRangeCount { get; set; }
/// <summary>
/// Gets or sets the tcpTryCount field.
/// </summary>
[DataMember]
public int tcpTryCount { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="AvroAppSubmissionParameters"/> class.
/// </summary>
public AvroAppSubmissionParameters()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="AvroAppSubmissionParameters"/> class.
/// </summary>
/// <param name="tcpBeginPort">The tcpBeginPort.</param>
/// <param name="tcpRangeCount">The tcpRangeCount.</param>
/// <param name="tcpTryCount">The tcpTryCount.</param>
public AvroAppSubmissionParameters(int tcpBeginPort, int tcpRangeCount, int tcpTryCount)
{
this.tcpBeginPort = tcpBeginPort;
this.tcpRangeCount = tcpRangeCount;
this.tcpTryCount = tcpTryCount;
}
}
}