TaskOperations.getTask 方法

定义

重载

getTask(String jobId, String taskId)

Gets the specified CloudTask.

getTask(String jobId, String taskId, DetailLevel detailLevel)

Gets the specified CloudTask.

getTask(String jobId, String taskId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Gets the specified CloudTask.

getTask(String jobId, String taskId)

Gets the specified CloudTask.

public CloudTask getTask(String jobId, String taskId)

参数

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task.

返回

A CloudTask containing information about the specified Azure Batch task.

例外

BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

getTask(String jobId, String taskId, DetailLevel detailLevel)

Gets the specified CloudTask.

public CloudTask getTask(String jobId, String taskId, DetailLevel detailLevel)

参数

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task.

detailLevel
DetailLevel

A DetailLevel used for controlling which properties are retrieved from the service.

返回

A CloudTask containing information about the specified Azure Batch task.

例外

BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

getTask(String jobId, String taskId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Gets the specified CloudTask.

public CloudTask getTask(String jobId, String taskId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

参数

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task.

detailLevel
DetailLevel

A DetailLevel used for controlling which properties are retrieved from the service.

additionalBehaviors
Iterable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request.

返回

A CloudTask containing information about the specified Azure Batch task.

例外

BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

适用于