SubtaskInformation 类

定义

Information about an Azure Batch subtask.

public class SubtaskInformation
继承
java.lang.Object
SubtaskInformation

方法

containerInfo()

Get this property is set only if the task runs in a container context.

endTime()

Get this property is set only if the subtask is in the Completed state.

exitCode()

Get this property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code.

failureInfo()

Get this property is set only if the task is in the completed state and encountered a failure.

id()

Get the id value.

nodeInfo()

Get the nodeInfo value.

previousState()

Get this property is not set if the subtask is in its initial running state. Possible values include: 'preparing', 'running', 'completed'.

previousStateTransitionTime()

Get this property is not set if the subtask is in its initial running state.

result()

Get if the value is 'failed', then the details of the failure can be found in the failureInfo property. Possible values include: 'success', 'failure'.

startTime()

Get the startTime value.

state()

Get possible values include: 'preparing', 'running', 'completed'.

stateTransitionTime()

Get the stateTransitionTime value.

withContainerInfo(TaskContainerExecutionInformation containerInfo)

Set this property is set only if the task runs in a container context.

withEndTime(DateTime endTime)

Set this property is set only if the subtask is in the Completed state.

withExitCode(Integer exitCode)

Set this property is set only if the subtask is in the completed state. In general, the exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. However, if the Batch service terminates the subtask (due to timeout, or user termination via the API) you may see an operating system-defined exit code.

withFailureInfo(TaskFailureInformation failureInfo)

Set this property is set only if the task is in the completed state and encountered a failure.

withId(Integer id)

Set the id value.

withNodeInfo(ComputeNodeInformation nodeInfo)

Set the nodeInfo value.

withPreviousState(SubtaskState previousState)

Set this property is not set if the subtask is in its initial running state. Possible values include: 'preparing', 'running', 'completed'.

withPreviousStateTransitionTime(DateTime previousStateTransitionTime)

Set this property is not set if the subtask is in its initial running state.

withResult(TaskExecutionResult result)

Set if the value is 'failed', then the details of the failure can be found in the failureInfo property. Possible values include: 'success', 'failure'.

withStartTime(DateTime startTime)

Set the startTime value.

withState(SubtaskState state)

Set possible values include: 'preparing', 'running', 'completed'.

withStateTransitionTime(DateTime stateTransitionTime)

Set the stateTransitionTime value.

适用于