BatchNodePlacementConfiguration Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchNodePlacementConfiguration
- com.
Implements
public final class BatchNodePlacementConfiguration
implements JsonSerializable<BatchNodePlacementConfiguration>
For regional placement, nodes in the pool will be allocated in the same region. For zonal placement, nodes in the pool will be spread across different zones with best effort balancing.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchNodePlacementConfiguration() |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
getPolicy()
Get the policy property: Node placement Policy type on Batch Pools. |
|
Batch |
setPolicy(BatchNodePlacementPolicyType policy)
Set the policy property: Node placement Policy type on Batch Pools. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchNodePlacementConfiguration
public BatchNodePlacementConfiguration()
Creates an instance of BatchNodePlacementConfiguration class.
Method Details
fromJson
public static BatchNodePlacementConfiguration fromJson(JsonReader jsonReader)
Reads an instance of BatchNodePlacementConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getPolicy
public BatchNodePlacementPolicyType getPolicy()
Get the policy property: Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.
Returns:
setPolicy
public BatchNodePlacementConfiguration setPolicy(BatchNodePlacementPolicyType policy)
Set the policy property: Node placement Policy type on Batch Pools. Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.
Parameters:
Returns: