TaskInformation Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. TaskInformation
- com.
public class TaskInformation
Information about a task running on a compute node.
Method Summary
Modifier and Type | Method and Description |
---|---|
Task |
executionInfo()
Get the executionInfo value. |
String |
jobId()
Get the jobId value. |
Integer |
subtaskId()
Get the subtaskId value. |
String |
taskId()
Get the taskId value. |
Task |
taskState()
Get possible values include: 'active', 'preparing', 'running', 'completed'. |
String |
taskUrl()
Get the taskUrl value. |
Task |
withExecutionInfo(TaskExecutionInformation executionInfo)
Set the executionInfo value. |
Task |
withJobId(String jobId)
Set the jobId value. |
Task |
withSubtaskId(Integer subtaskId)
Set the subtaskId value. |
Task |
withTaskId(String taskId)
Set the taskId value. |
Task |
withTaskState(TaskState taskState)
Set possible values include: 'active', 'preparing', 'running', 'completed'. |
Task |
withTaskUrl(String taskUrl)
Set the taskUrl value. |
Method Details
executionInfo
public TaskExecutionInformation executionInfo()
Get the executionInfo value.
Returns:
jobId
public String jobId()
Get the jobId value.
Returns:
subtaskId
public Integer subtaskId()
Get the subtaskId value.
Returns:
taskId
public String taskId()
Get the taskId value.
Returns:
taskState
public TaskState taskState()
Get possible values include: 'active', 'preparing', 'running', 'completed'.
Returns:
taskUrl
public String taskUrl()
Get the taskUrl value.
Returns:
withExecutionInfo
public TaskInformation withExecutionInfo(TaskExecutionInformation executionInfo)
Set the executionInfo value.
Parameters:
Returns:
withJobId
public TaskInformation withJobId(String jobId)
Set the jobId value.
Parameters:
Returns:
withSubtaskId
public TaskInformation withSubtaskId(Integer subtaskId)
Set the subtaskId value.
Parameters:
Returns:
withTaskId
public TaskInformation withTaskId(String taskId)
Set the taskId value.
Parameters:
Returns:
withTaskState
public TaskInformation withTaskState(TaskState taskState)
Set possible values include: 'active', 'preparing', 'running', 'completed'.
Parameters:
Returns:
withTaskUrl
public TaskInformation withTaskUrl(String taskUrl)
Set the taskUrl value.
Parameters:
Returns:
Applies to
Azure SDK for Java