BatchPool Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchPool
- com.
Implements
public final class BatchPool
implements JsonSerializable<BatchPool>
A Pool in the Azure Batch service.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Allocation |
getAllocationState()
Get the allocation |
|
Offset |
getAllocationStateTransitionTime()
Get the allocation |
|
List<Batch |
getApplicationPackageReferences()
Get the application |
| Duration |
getAutoScaleEvaluationInterval()
Get the auto |
| String |
getAutoScaleFormula()
Get the auto |
|
Auto |
getAutoScaleRun()
Get the auto |
|
List<Batch |
getCertificateReferences()
Get the certificate |
|
Offset |
getCreationTime()
Get the creation |
| Integer |
getCurrentDedicatedNodes()
Get the current |
| Integer |
getCurrentLowPriorityNodes()
Get the current |
|
Batch |
getCurrentNodeCommunicationMode()
Get the current |
| String |
getDisplayName()
Get the display |
| String |
getETag()
Get the e |
| String |
getId()
Get the id property: A string that uniquely identifies the Pool within the Account. |
|
Batch |
getIdentity()
Get the identity property: The identity of the Batch pool, if configured. |
|
Offset |
getLastModified()
Get the last |
|
List<Batch |
getMetadata()
Get the metadata property: A list of name-value pairs associated with the Pool as metadata. |
|
List<Mount |
getMountConfiguration()
Get the mount |
|
Network |
getNetworkConfiguration()
Get the network |
|
Batch |
getPoolStatistics()
Get the pool |
|
List<Resize |
getResizeErrors()
Get the resize |
| Duration |
getResizeTimeout()
Get the resize |
| Map<String,String> |
getResourceTags()
Get the resource |
|
Batch |
getStartTask()
Get the start |
|
Batch |
getState()
Get the state property: The current state of the Pool. |
|
Offset |
getStateTransitionTime()
Get the state |
| Integer |
getTargetDedicatedNodes()
Get the target |
| Integer |
getTargetLowPriorityNodes()
Get the target |
|
Batch |
getTargetNodeCommunicationMode()
Get the target |
|
Batch |
getTaskSchedulingPolicy()
Get the task |
| Integer |
getTaskSlotsPerNode()
Get the task |
|
Upgrade |
getUpgradePolicy()
Get the upgrade |
| String |
getUrl()
Get the url property: The URL of the Pool. |
|
List<User |
getUserAccounts()
Get the user |
|
Virtual |
getVirtualMachineConfiguration()
Get the virtual |
| String |
getVmSize()
Get the vm |
| Boolean |
isEnableAutoScale()
Get the enable |
| Boolean |
isEnableInterNodeCommunication()
Get the enable |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static BatchPool fromJson(JsonReader jsonReader)
Reads an instance of BatchPool from the JsonReader.
Parameters:
Returns:
Throws:
getAllocationState
public AllocationState getAllocationState()
Get the allocationState property: Whether the Pool is resizing.
Returns:
getAllocationStateTransitionTime
public OffsetDateTime getAllocationStateTransitionTime()
Get the allocationStateTransitionTime property: The time at which the Pool entered its current allocation state.
Returns:
getApplicationPackageReferences
public List<BatchApplicationPackageReference> getApplicationPackageReferences()
Get the applicationPackageReferences property: The list of Packages to be installed on each Compute Node in the Pool. 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:
getAutoScaleEvaluationInterval
public Duration getAutoScaleEvaluationInterval()
Get the autoScaleEvaluationInterval property: The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
Returns:
getAutoScaleFormula
public String getAutoScaleFormula()
Get the autoScaleFormula property: A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
Returns:
getAutoScaleRun
public AutoScaleRun getAutoScaleRun()
Get the autoScaleRun property: The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
Returns:
getCertificateReferences
public List<BatchCertificateReference> getCertificateReferences()
Get the certificateReferences property: 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://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
Returns:
getCreationTime
public OffsetDateTime getCreationTime()
Get the creationTime property: The creation time of the Pool.
Returns:
getCurrentDedicatedNodes
public Integer getCurrentDedicatedNodes()
Get the currentDedicatedNodes property: The number of dedicated Compute Nodes currently in the Pool.
Returns:
getCurrentLowPriorityNodes
public Integer getCurrentLowPriorityNodes()
Get the currentLowPriorityNodes property: The number of Spot/Low-priority Compute Nodes currently in the Pool. Spot/Low-priority Compute Nodes which have been preempted are included in this count.
Returns:
getCurrentNodeCommunicationMode
public BatchNodeCommunicationMode getCurrentNodeCommunicationMode()
Get the currentNodeCommunicationMode property: The current state of the pool communication mode.
Returns:
getDisplayName
public String getDisplayName()
Get the displayName property: The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
Returns:
getETag
public String getETag()
Get the eTag property: The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime.
Returns:
getId
public String getId()
Get the id property: A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).
Returns:
getIdentity
public BatchPoolIdentity getIdentity()
Get the identity property: The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Returns:
getLastModified
public OffsetDateTime getLastModified()
Get the lastModified property: The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state.
Returns:
getMetadata
public List<BatchMetadataItem> getMetadata()
Get the metadata property: A list of name-value pairs associated with the Pool as metadata.
Returns:
getMountConfiguration
public List<MountConfiguration> getMountConfiguration()
Get the mountConfiguration property: A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
Returns:
getNetworkConfiguration
public NetworkConfiguration getNetworkConfiguration()
Get the networkConfiguration property: The network configuration for the Pool.
Returns:
getPoolStatistics
public BatchPoolStatistics getPoolStatistics()
Get the poolStatistics property: Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
Returns:
getResizeErrors
public List<ResizeError> getResizeErrors()
Get the resizeErrors property: A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady.
Returns:
getResizeTimeout
public Duration getResizeTimeout()
Get the resizeTimeout property: The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes.
Returns:
getResourceTags
public Map<String,String> getResourceTags()
Get the resourceTags property: The user-specified tags associated with the pool. 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:
getStartTask
public BatchStartTask getStartTask()
Get the startTask property: A Task specified to run on each Compute Node as it joins the Pool.
Returns:
getState
public BatchPoolState getState()
Get the state property: The current state of the Pool.
Returns:
getStateTransitionTime
public OffsetDateTime getStateTransitionTime()
Get the stateTransitionTime property: The time at which the Pool entered its current state.
Returns:
getTargetDedicatedNodes
public Integer getTargetDedicatedNodes()
Get the targetDedicatedNodes property: The desired number of dedicated Compute Nodes in the Pool.
Returns:
getTargetLowPriorityNodes
public Integer getTargetLowPriorityNodes()
Get the targetLowPriorityNodes property: The desired number of Spot/Low-priority Compute Nodes in the Pool.
Returns:
getTargetNodeCommunicationMode
public BatchNodeCommunicationMode getTargetNodeCommunicationMode()
Get the targetNodeCommunicationMode property: The desired node communication mode for the pool. If omitted, the default value is Default.
Returns:
getTaskSchedulingPolicy
public BatchTaskSchedulingPolicy getTaskSchedulingPolicy()
Get the taskSchedulingPolicy property: How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.
Returns:
getTaskSlotsPerNode
public Integer getTaskSlotsPerNode()
Get the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. 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:
getUpgradePolicy
public UpgradePolicy getUpgradePolicy()
Get the upgradePolicy property: The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.
Returns:
getUrl
public String getUrl()
Get the url property: The URL of the Pool.
Returns:
getUserAccounts
public List<UserAccount> getUserAccounts()
Get the userAccounts property: The list of user Accounts to be created on each Compute Node in the Pool.
Returns:
getVirtualMachineConfiguration
public VirtualMachineConfiguration getVirtualMachineConfiguration()
Get the virtualMachineConfiguration property: The virtual machine configuration for the Pool. This property must be specified.
Returns:
getVmSize
public String getVmSize()
Get the vmSize property: The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes, see Sizes for Virtual Machines in Azure (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
Returns:
isEnableAutoScale
public Boolean isEnableAutoScale()
Get the enableAutoScale property: Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false.
Returns:
isEnableInterNodeCommunication
public Boolean isEnableInterNodeCommunication()
Get the enableInterNodeCommunication property: Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool.
Returns: