JobOperations.disableJob 方法

定义

重载

disableJob(String jobId, DisableJobOption disableJobOption)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

disableJob(String jobId, DisableJobOption disableJobOption, Iterable<BatchClientBehavior> additionalBehaviors)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

disableJob(String jobId, DisableJobOption disableJobOption)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

public void disableJob(String jobId, DisableJobOption disableJobOption)

参数

jobId
String

The ID of the job.

disableJobOption
DisableJobOption

Specifies what to do with running tasks associated with the job.

例外

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.

disableJob(String jobId, DisableJobOption disableJobOption, Iterable<BatchClientBehavior> additionalBehaviors)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

public void disableJob(String jobId, DisableJobOption disableJobOption, Iterable<BatchClientBehavior> additionalBehaviors)

参数

jobId
String

The ID of the job.

disableJobOption
DisableJobOption

Specifies what to do with running tasks associated with the job.

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.

适用于