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.
Constructor Summary
Constructor | Description | |
---|---|---|
TaskInformation() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Task |
executionInfo()
Get the execution |
String |
jobId()
Get the job |
Integer |
subtaskId()
Get the subtask |
String |
taskId()
Get the task |
Task |
taskState()
Get possible values include: 'active', 'preparing', 'running', 'completed'. |
String |
taskUrl()
Get the task |
Task |
withExecutionInfo(TaskExecutionInformation executionInfo)
Set the execution |
Task |
withJobId(String jobId)
Set the job |
Task |
withSubtaskId(Integer subtaskId)
Set the subtask |
Task |
withTaskId(String taskId)
Set the task |
Task |
withTaskState(TaskState taskState)
Set possible values include: 'active', 'preparing', 'running', 'completed'. |
Task |
withTaskUrl(String taskUrl)
Set the task |
Methods inherited from java.lang.Object
Constructor Details
TaskInformation
public TaskInformation()
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