JobPreparationTaskExecutionInformation Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. JobPreparationTaskExecutionInformation
- com.
public class JobPreparationTaskExecutionInformation
Contains information about the execution of a Job Preparation 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. |
DateTime |
lastRetryTime()
Get this property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not. |
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'. |
int |
retryCount()
Get task application failures (non-zero exit code) are retried, pre-processing errors (the task could not be run) and file upload errors are not retried. The Batch service will retry the task up to the limit specified by the constraints. |
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 |
withLastRetryTime(DateTime lastRetryTime)
Set this property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not. |
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 |
withRetryCount(int retryCount)
Set task application failures (non-zero exit code) are retried, pre-processing errors (the task could not be run) and file upload errors are not retried. The Batch service will retry the task up to the limit specified by the constraints. |
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(JobPreparationTaskState 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:
lastRetryTime
public DateTime lastRetryTime()
Get this property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not.
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:
retryCount
public int retryCount()
Get task application failures (non-zero exit code) are retried, pre-processing errors (the task could not be run) and file upload errors are not retried. The Batch service will retry the task up to the limit specified by the constraints.
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 JobPreparationTaskState 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 JobPreparationTaskExecutionInformation withContainerInfo(TaskContainerExecutionInformation containerInfo)
Set this property is set only if the task runs in a container context.
Parameters:
Returns:
withEndTime
public JobPreparationTaskExecutionInformation withEndTime(DateTime endTime)
Set this property is set only if the task is in the Completed state.
Parameters:
Returns:
withExitCode
public JobPreparationTaskExecutionInformation 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 JobPreparationTaskExecutionInformation withFailureInfo(TaskFailureInformation failureInfo)
Set this property is set only if the task is in the completed state and encountered a failure.
Parameters:
Returns:
withLastRetryTime
public JobPreparationTaskExecutionInformation withLastRetryTime(DateTime lastRetryTime)
Set this property is set only if the task was retried (i.e. retryCount is nonzero). If present, this is typically the same as startTime, but may be different if the task has been restarted for reasons other than retry; for example, if the compute node was rebooted during a retry, then the startTime is updated but the lastRetryTime is not.
Parameters:
Returns:
withResult
public JobPreparationTaskExecutionInformation 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:
withRetryCount
public JobPreparationTaskExecutionInformation withRetryCount(int retryCount)
Set task application failures (non-zero exit code) are retried, pre-processing errors (the task could not be run) and file upload errors are not retried. The Batch service will retry the task up to the limit specified by the constraints.
Parameters:
Returns:
withStartTime
public JobPreparationTaskExecutionInformation 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 JobPreparationTaskExecutionInformation withState(JobPreparationTaskState state)
Set possible values include: 'running', 'completed'.
Parameters:
Returns:
withTaskRootDirectory
public JobPreparationTaskExecutionInformation withTaskRootDirectory(String taskRootDirectory)
Set the taskRootDirectory value.
Parameters:
Returns:
withTaskRootDirectoryUrl
public JobPreparationTaskExecutionInformation withTaskRootDirectoryUrl(String taskRootDirectoryUrl)
Set the taskRootDirectoryUrl value.
Parameters:
Returns:
Applies to
Azure SDK for Java