Class PoolInformation
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.PoolInformation
-
public class PoolInformation extends Object
Specifies how a Job should be assigned to a Pool.
-
-
Constructor Summary
Constructors Constructor Description PoolInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoPoolSpecification
autoPoolSpecification()
Get if auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property.String
poolId()
Get you must ensure that the Pool referenced by this property exists.PoolInformation
withAutoPoolSpecification(AutoPoolSpecification autoPoolSpecification)
Set if auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property.PoolInformation
withPoolId(String poolId)
Set you must ensure that the Pool referenced by this property exists.
-
-
-
Method Detail
-
poolId
public String poolId()
Get you must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both.- Returns:
- the poolId value
-
withPoolId
public PoolInformation withPoolId(String poolId)
Set you must ensure that the Pool referenced by this property exists. If the Pool does not exist at the time the Batch service tries to schedule a Job, no Tasks for the Job will run until you create a Pool with that id. Note that the Batch service will not reject the Job request; it will simply not run Tasks until the Pool exists. You must specify either the Pool ID or the auto Pool specification, but not both.- Parameters:
poolId
- the poolId value to set- Returns:
- the PoolInformation object itself.
-
autoPoolSpecification
public AutoPoolSpecification autoPoolSpecification()
Get if auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both.- Returns:
- the autoPoolSpecification value
-
withAutoPoolSpecification
public PoolInformation withAutoPoolSpecification(AutoPoolSpecification autoPoolSpecification)
Set if auto Pool creation fails, the Batch service moves the Job to a completed state, and the Pool creation error is set in the Job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto Pool. Any user actions that affect the lifetime of the auto Pool while the Job is active will result in unexpected behavior. You must specify either the Pool ID or the auto Pool specification, but not both.- Parameters:
autoPoolSpecification
- the autoPoolSpecification value to set- Returns:
- the PoolInformation object itself.
-
-