Class JobReleaseTaskExecutionInformation
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.JobReleaseTaskExecutionInformation
-
public class JobReleaseTaskExecutionInformation extends Object
Contains information about the execution of a Job Release Task on a Compute Node.
-
-
Constructor Summary
Constructors Constructor Description JobReleaseTaskExecutionInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskContainerExecutionInformation
containerInfo()
Get this property is set only if the Task runs in a container context.org.joda.time.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.TaskFailureInformation
failureInfo()
Get this property is set only if the Task is in the completed state and encountered a failure.TaskExecutionResult
result()
Get if the value is 'failed', then the details of the failure can be found in the failureInfo property.org.joda.time.DateTime
startTime()
Get if the Task has been restarted or retried, this is the most recent time at which the Task started running.JobReleaseTaskState
state()
Get possible values include: 'running', 'completed'.String
taskRootDirectory()
Get the taskRootDirectory value.String
taskRootDirectoryUrl()
Get the taskRootDirectoryUrl value.JobReleaseTaskExecutionInformation
withContainerInfo(TaskContainerExecutionInformation containerInfo)
Set this property is set only if the Task runs in a container context.JobReleaseTaskExecutionInformation
withEndTime(org.joda.time.DateTime endTime)
Set this property is set only if the Task is in the Completed state.JobReleaseTaskExecutionInformation
withExitCode(Integer exitCode)
Set this parameter is returned only if the Task is in the completed state.JobReleaseTaskExecutionInformation
withFailureInfo(TaskFailureInformation failureInfo)
Set this property is set only if the Task is in the completed state and encountered a failure.JobReleaseTaskExecutionInformation
withResult(TaskExecutionResult result)
Set if the value is 'failed', then the details of the failure can be found in the failureInfo property.JobReleaseTaskExecutionInformation
withStartTime(org.joda.time.DateTime startTime)
Set if the Task has been restarted or retried, this is the most recent time at which the Task started running.JobReleaseTaskExecutionInformation
withState(JobReleaseTaskState state)
Set possible values include: 'running', 'completed'.JobReleaseTaskExecutionInformation
withTaskRootDirectory(String taskRootDirectory)
Set the taskRootDirectory value.JobReleaseTaskExecutionInformation
withTaskRootDirectoryUrl(String taskRootDirectoryUrl)
Set the taskRootDirectoryUrl value.
-
-
-
Method Detail
-
startTime
public org.joda.time.DateTime startTime()
Get if the Task has been restarted or retried, this is the most recent time at which the Task started running.- Returns:
- the startTime value
-
withStartTime
public JobReleaseTaskExecutionInformation withStartTime(org.joda.time.DateTime startTime)
Set if the Task has been restarted or retried, this is the most recent time at which the Task started running.- Parameters:
startTime
- the startTime value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
endTime
public org.joda.time.DateTime endTime()
Get this property is set only if the Task is in the Completed state.- Returns:
- the endTime value
-
withEndTime
public JobReleaseTaskExecutionInformation withEndTime(org.joda.time.DateTime endTime)
Set this property is set only if the Task is in the Completed state.- Parameters:
endTime
- the endTime value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
state
public JobReleaseTaskState state()
Get possible values include: 'running', 'completed'.- Returns:
- the state value
-
withState
public JobReleaseTaskExecutionInformation withState(JobReleaseTaskState state)
Set possible values include: 'running', 'completed'.- Parameters:
state
- the state value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
taskRootDirectory
public String taskRootDirectory()
Get the taskRootDirectory value.- Returns:
- the taskRootDirectory value
-
withTaskRootDirectory
public JobReleaseTaskExecutionInformation withTaskRootDirectory(String taskRootDirectory)
Set the taskRootDirectory value.- Parameters:
taskRootDirectory
- the taskRootDirectory value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
taskRootDirectoryUrl
public String taskRootDirectoryUrl()
Get the taskRootDirectoryUrl value.- Returns:
- the taskRootDirectoryUrl value
-
withTaskRootDirectoryUrl
public JobReleaseTaskExecutionInformation withTaskRootDirectoryUrl(String taskRootDirectoryUrl)
Set the taskRootDirectoryUrl value.- Parameters:
taskRootDirectoryUrl
- the taskRootDirectoryUrl value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
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:
- the exitCode value
-
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:
exitCode
- the exitCode value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
containerInfo
public TaskContainerExecutionInformation containerInfo()
Get this property is set only if the Task runs in a container context.- Returns:
- the containerInfo value
-
withContainerInfo
public JobReleaseTaskExecutionInformation withContainerInfo(TaskContainerExecutionInformation containerInfo)
Set this property is set only if the Task runs in a container context.- Parameters:
containerInfo
- the containerInfo value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
failureInfo
public TaskFailureInformation failureInfo()
Get this property is set only if the Task is in the completed state and encountered a failure.- Returns:
- the failureInfo value
-
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:
failureInfo
- the failureInfo value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
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:
- the result value
-
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:
result
- the result value to set- Returns:
- the JobReleaseTaskExecutionInformation object itself.
-
-