TaskInformation Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.TaskInformation

public class TaskInformation

Information about a task running on a compute node.

Method Summary

Modifier and Type Method and Description
TaskExecutionInformation executionInfo()

Get the executionInfo value.

String jobId()

Get the jobId value.

Integer subtaskId()

Get the subtaskId value.

String taskId()

Get the taskId value.

TaskState taskState()

Get possible values include: 'active', 'preparing', 'running', 'completed'.

String taskUrl()

Get the taskUrl value.

TaskInformation withExecutionInfo(TaskExecutionInformation executionInfo)

Set the executionInfo value.

TaskInformation withJobId(String jobId)

Set the jobId value.

TaskInformation withSubtaskId(Integer subtaskId)

Set the subtaskId value.

TaskInformation withTaskId(String taskId)

Set the taskId value.

TaskInformation withTaskState(TaskState taskState)

Set possible values include: 'active', 'preparing', 'running', 'completed'.

TaskInformation withTaskUrl(String taskUrl)

Set the taskUrl value.

Method Details

executionInfo

public TaskExecutionInformation executionInfo()

Get the executionInfo value.

Returns:

the executionInfo value

jobId

public String jobId()

Get the jobId value.

Returns:

the jobId value

subtaskId

public Integer subtaskId()

Get the subtaskId value.

Returns:

the subtaskId value

taskId

public String taskId()

Get the taskId value.

Returns:

the taskId value

taskState

public TaskState taskState()

Get possible values include: 'active', 'preparing', 'running', 'completed'.

Returns:

the taskState value

taskUrl

public String taskUrl()

Get the taskUrl value.

Returns:

the taskUrl value

withExecutionInfo

public TaskInformation withExecutionInfo(TaskExecutionInformation executionInfo)

Set the executionInfo value.

Parameters:

executionInfo - the executionInfo value to set

Returns:

the TaskInformation object itself.

withJobId

public TaskInformation withJobId(String jobId)

Set the jobId value.

Parameters:

jobId - the jobId value to set

Returns:

the TaskInformation object itself.

withSubtaskId

public TaskInformation withSubtaskId(Integer subtaskId)

Set the subtaskId value.

Parameters:

subtaskId - the subtaskId value to set

Returns:

the TaskInformation object itself.

withTaskId

public TaskInformation withTaskId(String taskId)

Set the taskId value.

Parameters:

taskId - the taskId value to set

Returns:

the TaskInformation object itself.

withTaskState

public TaskInformation withTaskState(TaskState taskState)

Set possible values include: 'active', 'preparing', 'running', 'completed'.

Parameters:

taskState - the taskState value to set

Returns:

the TaskInformation object itself.

withTaskUrl

public TaskInformation withTaskUrl(String taskUrl)

Set the taskUrl value.

Parameters:

taskUrl - the taskUrl value to set

Returns:

the TaskInformation object itself.

Applies to