AutoPoolSpecification 类

定义

Specifies characteristics for a temporary 'auto pool'. The Batch service will create this auto pool when the job is submitted.

public class AutoPoolSpecification
继承
java.lang.Object
AutoPoolSpecification

方法

autoPoolIdPrefix()

Get the Batch service assigns each auto pool a unique identifier on creation. To distinguish between pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long.

keepAlive()

Get if false, the Batch service deletes the pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the job or job schedule completes. If true, the Batch service does not delete the pool automatically. It is up to the user to delete auto pools created with this option.

pool()

Get the pool value.

poolLifetimeOption()

Get possible values include: 'jobSchedule', 'job'.

withAutoPoolIdPrefix(String autoPoolIdPrefix)

Set the Batch service assigns each auto pool a unique identifier on creation. To distinguish between pools created for different purposes, you can specify this element to add a prefix to the ID that is assigned. The prefix can be up to 20 characters long.

withKeepAlive(Boolean keepAlive)

Set if false, the Batch service deletes the pool once its lifetime (as determined by the poolLifetimeOption setting) expires; that is, when the job or job schedule completes. If true, the Batch service does not delete the pool automatically. It is up to the user to delete auto pools created with this option.

withPool(PoolSpecification pool)

Set the pool value.

withPoolLifetimeOption(PoolLifetimeOption poolLifetimeOption)

Set possible values include: 'jobSchedule', 'job'.

适用于