TaskOperations.createTasks Method

Definition

Overloads

createTasks(String jobId, List<TaskAddParameter> taskList)

Adds multiple tasks to a job.

createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)

Adds multiple tasks to a job.

createTasks(String jobId, List<TaskAddParameter> taskList)

Adds multiple tasks to a job.

public void createTasks(String jobId, List<TaskAddParameter> taskList)
Parameters
jobId
String

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

taskList
List<TaskAddParameter>

A list of tasks to add.

Exceptions
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.

InterruptedException

Exception thrown if any thread has interrupted the current thread.

createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)

Adds multiple tasks to a job.

public void createTasks(String jobId, List<TaskAddParameter> taskList, Iterable<BatchClientBehavior> additionalBehaviors)
Parameters
jobId
String

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

taskList
List<TaskAddParameter>

A list of tasks to add.

additionalBehaviors
Iterable<BatchClientBehavior>

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

Exceptions
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.

InterruptedException

Exception thrown if any thread has interrupted the current thread.