NodePlacementConfiguration Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.NodePlacementConfiguration

public class NodePlacementConfiguration

Node placement configuration for a pool. 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
NodePlacementConfiguration()

Method Summary

Modifier and Type Method and Description
NodePlacementPolicyType policy()

Get allocation policy used by Batch Service to provision the nodes.

NodePlacementConfiguration withPolicy(NodePlacementPolicyType policy)

Set allocation policy used by Batch Service to provision the nodes.

Methods inherited from java.lang.Object

Constructor Details

NodePlacementConfiguration

public NodePlacementConfiguration()

Method Details

policy

public NodePlacementPolicyType policy()

Get allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. Possible values include: 'regional', 'zonal'.

Returns:

the policy value

withPolicy

public NodePlacementConfiguration withPolicy(NodePlacementPolicyType policy)

Set allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. Possible values include: 'regional', 'zonal'.

Parameters:

policy - the policy value to set

Returns:

the NodePlacementConfiguration object itself.

Applies to