TaskOperations.createTask 方法

定义

重载

createTask(String jobId, TaskAddParameter taskToAdd)

Adds a single task to a job.

createTask(String jobId, TaskAddParameter taskToAdd, Iterable<BatchClientBehavior> additionalBehaviors)

Adds a single task to a job.

createTask(String jobId, TaskAddParameter taskToAdd)

Adds a single task to a job.

public void createTask(String jobId, TaskAddParameter taskToAdd)

参数

jobId
String

The ID of the job to which to add the task.

taskToAdd
TaskAddParameter

The task to add.

例外

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.

createTask(String jobId, TaskAddParameter taskToAdd, Iterable<BatchClientBehavior> additionalBehaviors)

Adds a single task to a job.

public void createTask(String jobId, TaskAddParameter taskToAdd, Iterable<BatchClientBehavior> additionalBehaviors)

参数

jobId
String

The ID of the job to which to add the task.

taskToAdd
TaskAddParameter

The task to add.

additionalBehaviors
Iterable<BatchClientBehavior>

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

例外

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.

适用于