internal TaskFailureInformation(Models.TaskFailureInformation protocolObject)
 {
     this.Category = UtilitiesInternal.MapEnum <Models.ErrorCategory, Common.ErrorCategory>(protocolObject.Category);
     this.Code     = protocolObject.Code;
     this.Details  = NameValuePair.ConvertFromProtocolCollectionReadOnly(protocolObject.Details);
     this.Message  = protocolObject.Message;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// JobReleaseTaskExecutionInformation class.
 /// </summary>
 /// <param name="startTime">The time at which the task started
 /// running.</param>
 /// <param name="state">The current state of the Job Release task on
 /// the compute node.</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="containerInfo">Information about the container under
 /// which the task is executing.</param>
 /// <param name="failureInfo">Information describing the task failure,
 /// if any.</param>
 /// <param name="result">The result of the task execution.</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?), TaskContainerExecutionInformation containerInfo = default(TaskContainerExecutionInformation), TaskFailureInformation failureInfo = default(TaskFailureInformation), TaskExecutionResult?result = default(TaskExecutionResult?))
 {
     StartTime            = startTime;
     EndTime              = endTime;
     State                = state;
     TaskRootDirectory    = taskRootDirectory;
     TaskRootDirectoryUrl = taskRootDirectoryUrl;
     ExitCode             = exitCode;
     ContainerInfo        = containerInfo;
     FailureInfo          = failureInfo;
     Result               = result;
     CustomInit();
 }
Beispiel #3
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 start task command line.</param>
 /// <param name="containerInfo">Information about the container under
 /// which the task is executing.</param>
 /// <param name="failureInfo">Information describing the task failure,
 /// if any.</param>
 /// <param name="lastRetryTime">The most recent time at which a retry
 /// of the task started running.</param>
 /// <param name="result">The result of the task execution.</param>
 public StartTaskInformation(StartTaskState state, System.DateTime startTime, int retryCount, System.DateTime?endTime = default(System.DateTime?), int?exitCode = default(int?), TaskContainerExecutionInformation containerInfo = default(TaskContainerExecutionInformation), TaskFailureInformation failureInfo = default(TaskFailureInformation), System.DateTime?lastRetryTime = default(System.DateTime?), TaskExecutionResult?result = default(TaskExecutionResult?))
 {
     State         = state;
     StartTime     = startTime;
     EndTime       = endTime;
     ExitCode      = exitCode;
     ContainerInfo = containerInfo;
     FailureInfo   = failureInfo;
     RetryCount    = retryCount;
     LastRetryTime = lastRetryTime;
     Result        = result;
     CustomInit();
 }
Beispiel #4
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="containerInfo">Information about the container under
 /// which the Task is executing.</param>
 /// <param name="failureInfo">Information describing the Task failure,
 /// if any.</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>
 /// <param name="result">The result of the Task execution.</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?), TaskContainerExecutionInformation containerInfo = default(TaskContainerExecutionInformation), TaskFailureInformation failureInfo = default(TaskFailureInformation), SubtaskState?state = default(SubtaskState?), System.DateTime?stateTransitionTime = default(System.DateTime?), SubtaskState?previousState = default(SubtaskState?), System.DateTime?previousStateTransitionTime = default(System.DateTime?), TaskExecutionResult?result = default(TaskExecutionResult?))
 {
     Id                          = id;
     NodeInfo                    = nodeInfo;
     StartTime                   = startTime;
     EndTime                     = endTime;
     ExitCode                    = exitCode;
     ContainerInfo               = containerInfo;
     FailureInfo                 = failureInfo;
     State                       = state;
     StateTransitionTime         = stateTransitionTime;
     PreviousState               = previousState;
     PreviousStateTransitionTime = previousStateTransitionTime;
     Result                      = result;
     CustomInit();
 }