JobReleaseTaskExecutionInformation Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. JobReleaseTaskExecutionInformation
- com.
public class JobReleaseTaskExecutionInformation
Contains information about the execution of a Job Release task on a compute node.
Method Summary
Modifier and Type | Method and Description |
---|---|
Task |
containerInfo()
Get this property is set only if the task runs in a container context. |
DateTime |
endTime()
Get this property is set only if the task is in the Completed state. |
Integer |
exitCode()
Get this parameter is returned only if the task is in the completed state. 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. Note that the exit code may also be generated by the compute node operating system, such as when a process is forcibly terminated. |
Task |
failureInfo()
Get this property is set only if the task is in the completed state and encountered a failure. |
Task |
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'. |
DateTime |
startTime()
Get if the task has been restarted or retried, this is the most recent time at which the task started running. |
Job |
state()
Get possible values include: 'running', 'completed'. |
String |
taskRootDirectory()
Get the taskRootDirectory value. |
String |
taskRootDirectoryUrl()
Get the taskRootDirectoryUrl value. |
Job |
withContainerInfo(TaskContainerExecutionInformation containerInfo)
Set this property is set only if the task runs in a container context. |
Job |
withEndTime(DateTime endTime)
Set this property is set only if the task is in the Completed state. |
Job |
withExitCode(Integer exitCode)
Set this parameter is returned only if the task is in the completed state. 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. Note that the exit code may also be generated by the compute node operating system, such as when a process is forcibly terminated. |
Job |
withFailureInfo(TaskFailureInformation failureInfo)
Set this property is set only if the task is in the completed state and encountered a failure. |
Job |
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'. |
Job |
withStartTime(DateTime startTime)
Set if the task has been restarted or retried, this is the most recent time at which the task started running. |
Job |
withState(JobReleaseTaskState state)
Set possible values include: 'running', 'completed'. |
Job |
withTaskRootDirectory(String taskRootDirectory)
Set the taskRootDirectory value. |
Job |
withTaskRootDirectoryUrl(String taskRootDirectoryUrl)
Set the taskRootDirectoryUrl value. |
Method Details
containerInfo
public TaskContainerExecutionInformation containerInfo()
Get this property is set only if the task runs in a container context.
Returns:
endTime
public DateTime endTime()
Get this property is set only if the task is in the Completed state.
Returns:
exitCode
public Integer exitCode()
Get this parameter is returned only if the task is in the completed state. 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. Note that the exit code may also be generated by the compute node operating system, such as when a process is forcibly terminated.
Returns:
failureInfo
public TaskFailureInformation failureInfo()
Get this property is set only if the task is in the completed state and encountered a failure.
Returns:
result
public TaskExecutionResult 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'.
Returns:
startTime
public DateTime startTime()
Get if the task has been restarted or retried, this is the most recent time at which the task started running.
Returns:
state
public JobReleaseTaskState state()
Get possible values include: 'running', 'completed'.
Returns:
taskRootDirectory
public String taskRootDirectory()
Get the taskRootDirectory value.
Returns:
taskRootDirectoryUrl
public String taskRootDirectoryUrl()
Get the taskRootDirectoryUrl value.
Returns:
withContainerInfo
public JobReleaseTaskExecutionInformation withContainerInfo(TaskContainerExecutionInformation containerInfo)
Set this property is set only if the task runs in a container context.
Parameters:
Returns:
withEndTime
public JobReleaseTaskExecutionInformation withEndTime(DateTime endTime)
Set this property is set only if the task is in the Completed state.
Parameters:
Returns:
withExitCode
public JobReleaseTaskExecutionInformation withExitCode(Integer exitCode)
Set this parameter is returned only if the task is in the completed state. 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. Note that the exit code may also be generated by the compute node operating system, such as when a process is forcibly terminated.
Parameters:
Returns:
withFailureInfo
public JobReleaseTaskExecutionInformation withFailureInfo(TaskFailureInformation failureInfo)
Set this property is set only if the task is in the completed state and encountered a failure.
Parameters:
Returns:
withResult
public JobReleaseTaskExecutionInformation 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'.
Parameters:
Returns:
withStartTime
public JobReleaseTaskExecutionInformation withStartTime(DateTime startTime)
Set if the task has been restarted or retried, this is the most recent time at which the task started running.
Parameters:
Returns:
withState
public JobReleaseTaskExecutionInformation withState(JobReleaseTaskState state)
Set possible values include: 'running', 'completed'.
Parameters:
Returns:
withTaskRootDirectory
public JobReleaseTaskExecutionInformation withTaskRootDirectory(String taskRootDirectory)
Set the taskRootDirectory value.
Parameters:
Returns:
withTaskRootDirectoryUrl
public JobReleaseTaskExecutionInformation withTaskRootDirectoryUrl(String taskRootDirectoryUrl)
Set the taskRootDirectoryUrl value.
Parameters:
Returns:
Applies to
Azure SDK for Java