CloudPool 类

定义

A pool in the Azure Batch service.

public class CloudPool
继承
java.lang.Object
CloudPool

方法

allocationState()

Get possible values include: 'steady', 'resizing', 'stopping'.

allocationStateTransitionTime()

Get the allocationStateTransitionTime value.

applicationLicenses()

Get the list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.

applicationPackageReferences()

Get the applicationPackageReferences value.

autoScaleEvaluationInterval()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

autoScaleFormula()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

autoScaleRun()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

certificateReferences()

Get for Windows compute 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.

cloudServiceConfiguration()

Get this property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.

creationTime()

Get the creationTime value.

currentDedicatedNodes()

Get the currentDedicatedNodes value.

currentLowPriorityNodes()

Get low-priority compute nodes which have been preempted are included in this count.

displayName()

Get the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

enableAutoScale()

Get if false, at least one of targetDedicateNodes 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.

enableInterNodeCommunication()

Get this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

eTag()

Get 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.

id()

Get 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).

lastModified()

Get 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.

maxTasksPerNode()

Get the maxTasksPerNode value.

metadata()

Get the metadata value.

networkConfiguration()

Get the networkConfiguration value.

resizeErrors()

Get this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

resizeTimeout()

Get 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.

startTask()

Get the startTask value.

state()

Get possible values include: 'active', 'deleting'.

stateTransitionTime()

Get the stateTransitionTime value.

stats()

Get the stats value.

targetDedicatedNodes()

Get the targetDedicatedNodes value.

targetLowPriorityNodes()

Get the targetLowPriorityNodes value.

taskSchedulingPolicy()

Get the taskSchedulingPolicy value.

url()

Get the url value.

userAccounts()

Get the userAccounts value.

virtualMachineConfiguration()

Get this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

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).

withAllocationState(AllocationState allocationState)

Set possible values include: 'steady', 'resizing', 'stopping'.

withAllocationStateTransitionTime(DateTime allocationStateTransitionTime)

Set the allocationStateTransitionTime value.

withApplicationLicenses(List<String> applicationLicenses)

Set the list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.

withApplicationPackageReferences(List<ApplicationPackageReference> applicationPackageReferences)

Set the applicationPackageReferences value.

withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

withAutoScaleFormula(String autoScaleFormula)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

withAutoScaleRun(AutoScaleRun autoScaleRun)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

withCertificateReferences(List<CertificateReference> certificateReferences)

Set for Windows compute 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.

withCloudServiceConfiguration(CloudServiceConfiguration cloudServiceConfiguration)

Set this property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.

withCreationTime(DateTime creationTime)

Set the creationTime value.

withCurrentDedicatedNodes(Integer currentDedicatedNodes)

Set the currentDedicatedNodes value.

withCurrentLowPriorityNodes(Integer currentLowPriorityNodes)

Set low-priority compute nodes which have been preempted are included in this count.

withDisplayName(String displayName)

Set the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

withEnableAutoScale(Boolean enableAutoScale)

Set if false, at least one of targetDedicateNodes 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.

withEnableInterNodeCommunication(Boolean enableInterNodeCommunication)

Set this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

withETag(String eTag)

Set 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.

withId(String id)

Set 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).

withLastModified(DateTime lastModified)

Set 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.

withMaxTasksPerNode(Integer maxTasksPerNode)

Set the maxTasksPerNode value.

withMetadata(List<MetadataItem> metadata)

Set the metadata value.

withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Set the networkConfiguration value.

withResizeErrors(List<ResizeError> resizeErrors)

Set this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

withResizeTimeout(Period resizeTimeout)

Set 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.

withStartTask(StartTask startTask)

Set the startTask value.

withState(PoolState state)

Set possible values include: 'active', 'deleting'.

withStateTransitionTime(DateTime stateTransitionTime)

Set the stateTransitionTime value.

withStats(PoolStatistics stats)

Set the stats value.

withTargetDedicatedNodes(Integer targetDedicatedNodes)

Set the targetDedicatedNodes value.

withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

Set the targetLowPriorityNodes value.

withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Set the taskSchedulingPolicy value.

withUrl(String url)

Set the url value.

withUserAccounts(List<UserAccount> userAccounts)

Set the userAccounts value.

withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

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).

适用于