PoolSpecification Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. PoolSpecification
- com.
public class PoolSpecification
Specification for creating a new Pool.
Constructor Summary
Constructor | Description | |
---|---|---|
PoolSpecification() |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Application |
applicationPackageReferences()
Get when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscription |
org.joda.time.Period |
autoScaleEvaluationInterval()
Get the default value is 15 minutes. |
String |
autoScaleFormula()
Get this property must not be specified if enable |
List<Certificate |
certificateReferences()
Get for Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. |
String |
displayName()
Get the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. |
Boolean |
enableAutoScale()
Get if false, at least one of target |
Boolean |
enableInterNodeCommunication()
Get enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. |
List<Metadata |
metadata()
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
List<Mount |
mountConfiguration()
Get this supports Azure Files, NFS, CIFS/SMB, and Blobfuse. |
Network |
networkConfiguration()
Get the network |
org.joda.time.Period |
resizeTimeout()
Get this timeout applies only to manual scaling; it has no effect when enable |
Map<String,String> |
resourceTags()
Get the user-defined tags to be associated with the Azure Batch Pool. |
Start |
startTask()
Get the start |
Integer |
targetDedicatedNodes()
Get this property must not be specified if enable |
Integer |
targetLowPriorityNodes()
Get this property must not be specified if enable |
Node |
targetNodeCommunicationMode()
Get if omitted, the default value is Default. |
Task |
taskSchedulingPolicy()
Get if not specified, the default is spread. |
Integer |
taskSlotsPerNode()
Get the default value is 1. |
Upgrade |
upgradePolicy()
Get the upgrade |
List<User |
userAccounts()
Get the user |
Virtual |
virtualMachineConfiguration()
Get this property must be specified. |
String |
vmSize()
Get for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs. |
Pool |
withApplicationPackageReferences(List<ApplicationPackageReference> applicationPackageReferences)
Set when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscription |
Pool |
withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)
Set the default value is 15 minutes. |
Pool |
withAutoScaleFormula(String autoScaleFormula)
Set this property must not be specified if enable |
Pool |
withCertificateReferences(List<CertificateReference> certificateReferences)
Set for Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. |
Pool |
withDisplayName(String displayName)
Set the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. |
Pool |
withEnableAutoScale(Boolean enableAutoScale)
Set if false, at least one of target |
Pool |
withEnableInterNodeCommunication(Boolean enableInterNodeCommunication)
Set enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. |
Pool |
withMetadata(List<MetadataItem> metadata)
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Pool |
withMountConfiguration(List<MountConfiguration> mountConfiguration)
Set this supports Azure Files, NFS, CIFS/SMB, and Blobfuse. |
Pool |
withNetworkConfiguration(NetworkConfiguration networkConfiguration)
Set the network |
Pool |
withResizeTimeout(Period resizeTimeout)
Set this timeout applies only to manual scaling; it has no effect when enable |
Pool |
withResourceTags(Map<String,String> resourceTags)
Set the user-defined tags to be associated with the Azure Batch Pool. |
Pool |
withStartTask(StartTask startTask)
Set the start |
Pool |
withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set this property must not be specified if enable |
Pool |
withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set this property must not be specified if enable |
Pool |
withTargetNodeCommunicationMode(NodeCommunicationMode targetNodeCommunicationMode)
Set if omitted, the default value is Default. |
Pool |
withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)
Set if not specified, the default is spread. |
Pool |
withTaskSlotsPerNode(Integer taskSlotsPerNode)
Set the default value is 1. |
Pool |
withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgrade |
Pool |
withUserAccounts(List<UserAccount> userAccounts)
Set the user |
Pool |
withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)
Set this property must be specified. |
Pool |
withVmSize(String vmSize)
Set for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs. |
Methods inherited from java.lang.Object
Constructor Details
PoolSpecification
public PoolSpecification()
Method Details
applicationPackageReferences
public List
Get when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.
Returns:
autoScaleEvaluationInterval
public Period autoScaleEvaluationInterval()
Get the default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
autoScaleFormula
public String autoScaleFormula()
Get this property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information.
Returns:
certificateReferences
public List
Get for Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://video2.skills-academy.com/azure/batch/batch-certificate-migration-guide) instead.
Returns:
displayName
public String displayName()
Get the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
Returns:
enableAutoScale
public Boolean enableAutoScale()
Get if false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false.
Returns:
enableInterNodeCommunication
public Boolean enableInterNodeCommunication()
Get enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false.
Returns:
metadata
public List
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Returns:
mountConfiguration
public List
Get this supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
Returns:
networkConfiguration
public NetworkConfiguration networkConfiguration()
Get the networkConfiguration value.
Returns:
resizeTimeout
public Period resizeTimeout()
Get this timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Returns:
resourceTags
public Map
Get the user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
Returns:
startTask
public StartTask startTask()
Get the startTask value.
Returns:
targetDedicatedNodes
public Integer targetDedicatedNodes()
Get this property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both.
Returns:
targetLowPriorityNodes
public Integer targetLowPriorityNodes()
Get this property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both.
Returns:
targetNodeCommunicationMode
public NodeCommunicationMode targetNodeCommunicationMode()
Get if omitted, the default value is Default. Possible values include: 'default', 'classic', 'simplified'.
Returns:
taskSchedulingPolicy
public TaskSchedulingPolicy taskSchedulingPolicy()
Get if not specified, the default is spread.
Returns:
taskSlotsPerNode
public Integer taskSlotsPerNode()
Get the default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.
Returns:
upgradePolicy
public UpgradePolicy upgradePolicy()
Get the upgradePolicy value.
Returns:
userAccounts
public List
Get the userAccounts value.
Returns:
virtualMachineConfiguration
public VirtualMachineConfiguration virtualMachineConfiguration()
Get this property must be specified.
Returns:
vmSize
public String vmSize()
Get for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
Returns:
withApplicationPackageReferences
public PoolSpecification withApplicationPackageReferences(List
Set when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}). Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.
Parameters:
Returns:
withAutoScaleEvaluationInterval
public PoolSpecification withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)
Set the default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns:
withAutoScaleFormula
public PoolSpecification withAutoScaleFormula(String autoScaleFormula)
Set this property must not be specified if enableAutoScale is set to false. It is required if enableAutoScale is set to true. The formula is checked for validity before the Pool is created. If the formula is not valid, the Batch service rejects the request with detailed error information.
Parameters:
Returns:
withCertificateReferences
public PoolSpecification withCertificateReferences(List
Set for Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://video2.skills-academy.com/azure/batch/batch-certificate-migration-guide) instead.
Parameters:
Returns:
withDisplayName
public PoolSpecification withDisplayName(String displayName)
Set the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
Parameters:
Returns:
withEnableAutoScale
public PoolSpecification withEnableAutoScale(Boolean enableAutoScale)
Set if false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula element is required. The Pool automatically resizes according to the formula. The default value is false.
Parameters:
Returns:
withEnableInterNodeCommunication
public PoolSpecification withEnableInterNodeCommunication(Boolean enableInterNodeCommunication)
Set enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false.
Parameters:
Returns:
withMetadata
public PoolSpecification withMetadata(List
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Parameters:
Returns:
withMountConfiguration
public PoolSpecification withMountConfiguration(List
Set this supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
Parameters:
Returns:
withNetworkConfiguration
public PoolSpecification withNetworkConfiguration(NetworkConfiguration networkConfiguration)
Set the networkConfiguration value.
Parameters:
Returns:
withResizeTimeout
public PoolSpecification withResizeTimeout(Period resizeTimeout)
Set this timeout applies only to manual scaling; it has no effect when enableAutoScale is set to true. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
Parameters:
Returns:
withResourceTags
public PoolSpecification withResourceTags(Map
Set the user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
Parameters:
Returns:
withStartTask
public PoolSpecification withStartTask(StartTask startTask)
Set the startTask value.
Parameters:
Returns:
withTargetDedicatedNodes
public PoolSpecification withTargetDedicatedNodes(Integer targetDedicatedNodes)
Set this property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both.
Parameters:
Returns:
withTargetLowPriorityNodes
public PoolSpecification withTargetLowPriorityNodes(Integer targetLowPriorityNodes)
Set this property must not be specified if enableAutoScale is set to true. If enableAutoScale is set to false, then you must set either targetDedicatedNodes, targetLowPriorityNodes, or both.
Parameters:
Returns:
withTargetNodeCommunicationMode
public PoolSpecification withTargetNodeCommunicationMode(NodeCommunicationMode targetNodeCommunicationMode)
Set if omitted, the default value is Default. Possible values include: 'default', 'classic', 'simplified'.
Parameters:
Returns:
withTaskSchedulingPolicy
public PoolSpecification withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)
Set if not specified, the default is spread.
Parameters:
Returns:
withTaskSlotsPerNode
public PoolSpecification withTaskSlotsPerNode(Integer taskSlotsPerNode)
Set the default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.
Parameters:
Returns:
withUpgradePolicy
public PoolSpecification withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgradePolicy value.
Parameters:
Returns:
withUserAccounts
public PoolSpecification withUserAccounts(List
Set the userAccounts value.
Parameters:
Returns:
withVirtualMachineConfiguration
public PoolSpecification withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)
Set this property must be specified.
Parameters:
Returns:
withVmSize
public PoolSpecification withVmSize(String vmSize)
Set for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
Parameters:
Returns:
Applies to
Azure SDK for Java