TaskOperations.listTasks 方法

定义

重载

listTasks(String jobId)

Lists the tasks of the specified job.

listTasks(String jobId, DetailLevel detailLevel)

Lists the tasks of the specified job.

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

Lists the tasks of the specified job.

listTasks(String jobId)

Lists the tasks of the specified job.

public PagedList<CloudTask> listTasks(String jobId)

参数

jobId
String

The ID of the job.

返回

PagedList<CloudTask>

A list of CloudTask objects.

例外

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.

listTasks(String jobId, DetailLevel detailLevel)

Lists the tasks of the specified job.

public PagedList<CloudTask> listTasks(String jobId, DetailLevel detailLevel)

参数

jobId
String

The ID of the job.

detailLevel
DetailLevel

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

返回

PagedList<CloudTask>

A list of CloudTask objects.

例外

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.

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

Lists the tasks of the specified job.

public PagedList<CloudTask> listTasks(String jobId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

参数

jobId
String

The ID of the job.

detailLevel
DetailLevel

A DetailLevel used for filtering the list and 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.

返回

PagedList<CloudTask>

A list of CloudTask objects.

例外

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.

适用于