Example #1
0
 internal TaskSchedulingError(Models.TaskSchedulingError protocolObject)
 {
     this.category = UtilitiesInternal.MapEnum <Models.SchedulingErrorCategory, Common.SchedulingErrorCategory>(protocolObject.Category);
     this.code     = protocolObject.Code;
     this.details  = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Details);
     this.message  = protocolObject.Message;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the StartTaskInformation class.
 /// </summary>
 /// <param name="state">The state of the start task on the compute
 /// node.</param>
 /// <param name="startTime">The time at which the start task started
 /// running.</param>
 /// <param name="retryCount">The number of times the task has been
 /// retried by the Batch service.</param>
 /// <param name="endTime">The time at which the start task stopped
 /// running.</param>
 /// <param name="exitCode">The exit code of the program specified on
 /// the task command line.</param>
 /// <param name="schedulingError">Any error encountered scheduling the
 /// start task.</param>
 /// <param name="lastRetryTime">The most recent time at which a retry
 /// of the task started running.</param>
 public StartTaskInformation(StartTaskState state, System.DateTime startTime, int retryCount, System.DateTime?endTime = default(System.DateTime?), int?exitCode = default(int?), TaskSchedulingError schedulingError = default(TaskSchedulingError), System.DateTime?lastRetryTime = default(System.DateTime?))
 {
     State           = state;
     StartTime       = startTime;
     EndTime         = endTime;
     ExitCode        = exitCode;
     SchedulingError = schedulingError;
     RetryCount      = retryCount;
     LastRetryTime   = lastRetryTime;
 }
 /// <summary>
 /// Initializes a new instance of the
 /// JobReleaseTaskExecutionInformation class.
 /// </summary>
 /// <param name="startTime">The time at which the task started
 /// running. Note that every time the task is restarted, this value
 /// is updated.</param>
 /// <param name="state">The current state of the Job Release
 /// task.</param>
 /// <param name="endTime">The time at which the Job Release task
 /// completed.</param>
 /// <param name="taskRootDirectory">The root directory of the Job
 /// Release task on the compute node. You can use this path to
 /// retrieve files created by the task, such as log files.</param>
 /// <param name="taskRootDirectoryUrl">The URL to the root directory
 /// of the Job Release task on the compute node.</param>
 /// <param name="exitCode">The exit code of the program specified on
 /// the task command line.</param>
 /// <param name="schedulingError">The scheduling error encountered by
 /// the Batch service when starting the task.</param>
 public JobReleaseTaskExecutionInformation(System.DateTime startTime, JobReleaseTaskState state, System.DateTime?endTime = default(System.DateTime?), string taskRootDirectory = default(string), string taskRootDirectoryUrl = default(string), int?exitCode = default(int?), TaskSchedulingError schedulingError = default(TaskSchedulingError))
 {
     StartTime            = startTime;
     EndTime              = endTime;
     State                = state;
     TaskRootDirectory    = taskRootDirectory;
     TaskRootDirectoryUrl = taskRootDirectoryUrl;
     ExitCode             = exitCode;
     SchedulingError      = schedulingError;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the TaskExecutionInformation class.
 /// </summary>
 /// <param name="retryCount">The number of times the task has been
 /// retried by the Batch service.</param>
 /// <param name="requeueCount">The number of times the task has been
 /// requeued by the Batch service as the result of a user
 /// request.</param>
 /// <param name="startTime">The time at which the task started
 /// running.</param>
 /// <param name="endTime">The time at which the task completed.</param>
 /// <param name="exitCode">The exit code of the program specified on
 /// the task command line.</param>
 /// <param name="schedulingError">Details of any error encountered
 /// scheduling the task.</param>
 /// <param name="lastRetryTime">The most recent time at which a retry
 /// of the task started running.</param>
 /// <param name="lastRequeueTime">The most recent time at which the
 /// task has been requeued by the Batch service as the result of a
 /// user request.</param>
 public TaskExecutionInformation(int retryCount, int requeueCount, System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), int?exitCode = default(int?), TaskSchedulingError schedulingError = default(TaskSchedulingError), System.DateTime?lastRetryTime = default(System.DateTime?), System.DateTime?lastRequeueTime = default(System.DateTime?))
 {
     StartTime       = startTime;
     EndTime         = endTime;
     ExitCode        = exitCode;
     SchedulingError = schedulingError;
     RetryCount      = retryCount;
     LastRetryTime   = lastRetryTime;
     RequeueCount    = requeueCount;
     LastRequeueTime = lastRequeueTime;
 }
 /// <summary>
 /// Initializes a new instance of the
 /// JobPreparationTaskExecutionInformation class.
 /// </summary>
 /// <param name="startTime">The time at which the task started
 /// running.</param>
 /// <param name="state">The current state of the Job Preparation
 /// task.</param>
 /// <param name="retryCount">The number of times the task has been
 /// retried by the Batch service. Every time the task exits with a
 /// non-zero exit code, it is deemed a task failure. The Batch
 /// service will retry the task up to the limit specified by the
 /// constraints.</param>
 /// <param name="endTime">The time at which the Job Preparation task
 /// completed.</param>
 /// <param name="taskRootDirectory">The root directory of the Job
 /// Preparation task on the compute node. You can use this path to
 /// retrieve files created by the task, such as log files.</param>
 /// <param name="taskRootDirectoryUrl">The URL to the root directory
 /// of the Job Preparation task on the compute node.</param>
 /// <param name="exitCode">The exit code of the program specified on
 /// the task command line.</param>
 /// <param name="schedulingError">The error encountered by the Batch
 /// service when starting the task.</param>
 /// <param name="lastRetryTime">The most recent time at which a retry
 /// of the Job Preparation task started running.</param>
 public JobPreparationTaskExecutionInformation(System.DateTime startTime, JobPreparationTaskState state, int retryCount, System.DateTime?endTime = default(System.DateTime?), string taskRootDirectory = default(string), string taskRootDirectoryUrl = default(string), int?exitCode = default(int?), TaskSchedulingError schedulingError = default(TaskSchedulingError), System.DateTime?lastRetryTime = default(System.DateTime?))
 {
     StartTime            = startTime;
     EndTime              = endTime;
     State                = state;
     TaskRootDirectory    = taskRootDirectory;
     TaskRootDirectoryUrl = taskRootDirectoryUrl;
     ExitCode             = exitCode;
     SchedulingError      = schedulingError;
     RetryCount           = retryCount;
     LastRetryTime        = lastRetryTime;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the SubtaskInformation class.
 /// </summary>
 /// <param name="id">The id of the subtask.</param>
 /// <param name="nodeInfo">Information about the compute node on which
 /// the subtask ran.</param>
 /// <param name="startTime">The time at which the subtask started
 /// running. If the subtask has been restarted or retried, this is
 /// the most recent time at which the subtask started running.</param>
 /// <param name="endTime">The time at which the subtask
 /// completed.</param>
 /// <param name="exitCode">The exit code of the program specified on
 /// the subtask command line.</param>
 /// <param name="schedulingError">Details of any error encountered
 /// scheduling the subtask.</param>
 /// <param name="state">The current state of the subtask.</param>
 /// <param name="stateTransitionTime">The time at which the subtask
 /// entered its current state.</param>
 /// <param name="previousState">The previous state of the
 /// subtask.</param>
 /// <param name="previousStateTransitionTime">The time at which the
 /// subtask entered its previous state.</param>
 public SubtaskInformation(int?id = default(int?), ComputeNodeInformation nodeInfo = default(ComputeNodeInformation), System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), int?exitCode = default(int?), TaskSchedulingError schedulingError = default(TaskSchedulingError), TaskState?state = default(TaskState?), System.DateTime?stateTransitionTime = default(System.DateTime?), TaskState?previousState = default(TaskState?), System.DateTime?previousStateTransitionTime = default(System.DateTime?))
 {
     Id                          = id;
     NodeInfo                    = nodeInfo;
     StartTime                   = startTime;
     EndTime                     = endTime;
     ExitCode                    = exitCode;
     SchedulingError             = schedulingError;
     State                       = state;
     StateTransitionTime         = stateTransitionTime;
     PreviousState               = previousState;
     PreviousStateTransitionTime = previousStateTransitionTime;
 }