PoolOperations 类

定义

Performs pool-related operations on an Azure Batch account.

public class PoolOperations implements IInheritedBehaviors
继承
java.lang.Object
PoolOperations

方法

createPool(PoolAddParameter pool)

Adds a pool to the Batch account.

createPool(PoolAddParameter pool, Iterable<BatchClientBehavior> additionalBehaviors)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes, Iterable<BatchClientBehavior> additionalBehaviors)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes)

Adds a pool to the Batch account.

createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes, Iterable<BatchClientBehavior> additionalBehaviors)

Adds a pool to the Batch account.

customBehaviors()

Gets a collection of behaviors that modify or customize requests to the Batch service.

deletePool(String poolId)

Deletes the specified pool.

deletePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors)

Deletes the specified pool.

disableAutoScale(String poolId)

Disables automatic scaling on the specified pool.

disableAutoScale(String poolId, Iterable<BatchClientBehavior> additionalBehaviors)

Disables automatic scaling on the specified pool.

enableAutoScale(String poolId)

Enables automatic scaling on the specified pool.

enableAutoScale(String poolId, String autoScaleFormula)

Enables automatic scaling on the specified pool.

enableAutoScale(String poolId, String autoScaleFormula, Period autoScaleEvaluationInterval)

Enables automatic scaling on the specified pool.

enableAutoScale(String poolId, String autoScaleFormula, Period autoScaleEvaluationInterval, Iterable<BatchClientBehavior> additionalBehaviors)

Enables automatic scaling on the specified pool.

evaluateAutoScale(String poolId, String autoScaleFormula)

Gets the result of evaluating an automatic scaling formula on the specified pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool.

evaluateAutoScale(String poolId, String autoScaleFormula, Iterable<BatchClientBehavior> additionalBehaviors)

Gets the result of evaluating an automatic scaling formula on the specified pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool.

existsPool(String poolId)

Checks whether the specified pool exists.

existsPool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors)

Checks whether the specified pool exists.

getAllPoolsLifetimeStatistics()

Gets lifetime summary statistics for all of the pools in the current account. Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.

getAllPoolsLifetimeStatistics(Iterable<BatchClientBehavior> additionalBehaviors)

Gets lifetime summary statistics for all of the pools in the current account. Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.

getPool(String poolId)

Gets the specified CloudPool.

getPool(String poolId, DetailLevel detailLevel)

Gets the specified CloudPool.

getPool(String poolId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Gets the specified CloudPool.

listPools()

Lists the pools in the Batch account.

listPools(DetailLevel detailLevel)

Lists the pools in the Batch account.

listPools(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Lists the pools in the Batch account.

listPoolUsageMetrics(DateTime startTime, DateTime endTime)

Lists pool usage metrics.

listPoolUsageMetrics(DateTime startTime, DateTime endTime, DetailLevel detailLevel)

Lists pool usage metrics.

listPoolUsageMetrics(DateTime startTime, DateTime endTime, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Lists pool usage metrics.

patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata)

Updates the specified pool. This method only replaces the properties specified with non-null values.

patchPool(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors)

Updates the specified pool. This method only replaces the properties specified with non-null values.

removeNodeFromPool(String poolId, String computeNodeId)

Removes the specified compute node from the specified pool.

removeNodeFromPool(String poolId, String computeNodeId, ComputeNodeDeallocationOption deallocationOption)

Removes the specified compute node from the specified pool.

removeNodeFromPool(String poolId, String computeNodeId, ComputeNodeDeallocationOption deallocationOption, Period resizeTimeout, Iterable<BatchClientBehavior> additionalBehaviors)

Removes the specified compute node from the specified pool.

removeNodesFromPool(String poolId, Collection<ComputeNode> computeNodes)

Removes the specified compute nodes from the specified pool.

removeNodesFromPool(String poolId, Collection<ComputeNode> computeNodes, ComputeNodeDeallocationOption deallocationOption)

Removes the specified compute nodes from the specified pool.

removeNodesFromPool(String poolId, Collection<ComputeNode> computeNodes, ComputeNodeDeallocationOption deallocationOption, Period resizeTimeout, Iterable<BatchClientBehavior> additionalBehaviors)

Removes the specified compute nodes from the specified pool.

removeNodesFromPool(String poolId, List<String> computeNodeIds, ComputeNodeDeallocationOption deallocationOption, Period resizeTimeout, Iterable<BatchClientBehavior> additionalBehaviors)

Removes the specified compute nodes from the specified pool.

resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes)

Resizes the specified pool.

resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout)

Resizes the specified pool.

resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout, ComputeNodeDeallocationOption deallocationOption)

Resizes the specified pool.

resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout, ComputeNodeDeallocationOption deallocationOption, Iterable<BatchClientBehavior> additionalBehaviors)

Resizes the specified pool.

stopResizePool(String poolId)

Stops a pool resize operation.

stopResizePool(String poolId, Iterable<BatchClientBehavior> additionalBehaviors)

Stops a pool resize operation.

updatePoolProperties(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata)

Updates the specified pool. This method fully replaces all the updatable properties of the pool. For example, if the startTask parameter is null and the pool has a start task associated with it, then the Batch service will remove the existing start task.

updatePoolProperties(String poolId, StartTask startTask, Collection<CertificateReference> certificateReferences, Collection<ApplicationPackageReference> applicationPackageReferences, Collection<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors)

Updates the specified pool. This method fully replaces all the updatable properties of the pool. For example, if the startTask parameter is null and the pool has a start task associated with it, then the Batch service will remove the existing start task.

withCustomBehaviors(Collection<BatchClientBehavior> behaviors)

Sets a collection of behaviors that modify or customize requests to the Batch service.

适用于