PoolOperations Class
- java.
lang. Object - IInheritedBehaviors
- com.
microsoft. azure. batch. PoolOperations
- com.
public class PoolOperations implements IInheritedBehaviors
Performs pool-related operations on an Azure Batch account.
Method Summary
Method Details
createPool
public void createPool(PoolAddParameter pool)
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(PoolAddParameter pool, Iterable
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes)
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes)
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, CloudServiceConfiguration cloudServiceConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes, Iterable
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes)
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes)
Adds a pool to the Batch account.
Parameters:
Throws:
createPool
public void createPool(String poolId, String virtualMachineSize, VirtualMachineConfiguration virtualMachineConfiguration, int targetDedicatedNodes, int targetLowPriorityNodes, Iterable
Adds a pool to the Batch account.
Parameters:
Throws:
customBehaviors
public Collection
Gets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
PoolOperations.customBehaviors()Returns:
deletePool
public void deletePool(String poolId)
Deletes the specified pool.
Parameters:
Throws:
deletePool
public void deletePool(String poolId, Iterable
Deletes the specified pool.
Parameters:
Throws:
disableAutoScale
public void disableAutoScale(String poolId)
Disables automatic scaling on the specified pool.
Parameters:
Throws:
disableAutoScale
public void disableAutoScale(String poolId, Iterable
Disables automatic scaling on the specified pool.
Parameters:
Throws:
enableAutoScale
public void enableAutoScale(String poolId)
Enables automatic scaling on the specified pool.
Parameters:
Throws:
enableAutoScale
public void enableAutoScale(String poolId, String autoScaleFormula)
Enables automatic scaling on the specified pool.
Parameters:
Throws:
enableAutoScale
public void enableAutoScale(String poolId, String autoScaleFormula, Period autoScaleEvaluationInterval)
Enables automatic scaling on the specified pool.
Parameters:
Throws:
enableAutoScale
public void enableAutoScale(String poolId, String autoScaleFormula, Period autoScaleEvaluationInterval, Iterable
Enables automatic scaling on the specified pool.
Parameters:
Throws:
evaluateAutoScale
public AutoScaleRun 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.
Parameters:
Returns:
Throws:
evaluateAutoScale
public AutoScaleRun evaluateAutoScale(String poolId, String autoScaleFormula, Iterable
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.
Parameters:
Returns:
Throws:
existsPool
public boolean existsPool(String poolId)
Checks whether the specified pool exists.
Parameters:
Returns:
Throws:
existsPool
public boolean existsPool(String poolId, Iterable
Checks whether the specified pool exists.
Parameters:
Returns:
Throws:
getAllPoolsLifetimeStatistics
public PoolStatistics 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.
Returns:
Throws:
getAllPoolsLifetimeStatistics
public PoolStatistics getAllPoolsLifetimeStatistics(Iterable
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.
Parameters:
Returns:
Throws:
getPool
public CloudPool getPool(String poolId)
Gets the specified CloudPool.
Parameters:
Returns:
Throws:
getPool
public CloudPool getPool(String poolId, DetailLevel detailLevel)
Gets the specified CloudPool.
Parameters:
Returns:
Throws:
getPool
public CloudPool getPool(String poolId, DetailLevel detailLevel, Iterable
Gets the specified CloudPool.
Parameters:
Returns:
Throws:
listPools
public PagedList
Lists the pools in the Batch account.
Returns:
Throws:
listPools
public PagedList
Lists the pools in the Batch account.
Parameters:
Returns:
Throws:
listPools
public PagedList
Lists the pools in the Batch account.
Parameters:
Returns:
Throws:
listPoolUsageMetrics
public PagedList
Lists pool usage metrics.
Parameters:
Returns:
Throws:
listPoolUsageMetrics
public PagedList
Lists pool usage metrics.
Parameters:
Returns:
Throws:
listPoolUsageMetrics
public PagedList
Lists pool usage metrics.
Parameters:
Returns:
Throws:
patchPool
public void patchPool(String poolId, StartTask startTask, Collection
Updates the specified pool. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchPool
public void patchPool(String poolId, StartTask startTask, Collection
Updates the specified pool. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
removeNodeFromPool
public void removeNodeFromPool(String poolId, String computeNodeId)
Removes the specified compute node from the specified pool.
Parameters:
Throws:
removeNodeFromPool
public void removeNodeFromPool(String poolId, String computeNodeId, ComputeNodeDeallocationOption deallocationOption)
Removes the specified compute node from the specified pool.
Parameters:
Throws:
removeNodeFromPool
public void removeNodeFromPool(String poolId, String computeNodeId, ComputeNodeDeallocationOption deallocationOption, Period resizeTimeout, Iterable
Removes the specified compute node from the specified pool.
Parameters:
Throws:
removeNodesFromPool
public void removeNodesFromPool(String poolId, Collection
Removes the specified compute nodes from the specified pool.
Parameters:
Throws:
removeNodesFromPool
public void removeNodesFromPool(String poolId, Collection
Removes the specified compute nodes from the specified pool.
Parameters:
Throws:
removeNodesFromPool
public void removeNodesFromPool(String poolId, Collection
Removes the specified compute nodes from the specified pool.
Parameters:
Throws:
removeNodesFromPool
public void removeNodesFromPool(String poolId, List
Removes the specified compute nodes from the specified pool.
Parameters:
Throws:
resizePool
public void resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes)
Resizes the specified pool.
Parameters:
Throws:
resizePool
public void resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout)
Resizes the specified pool.
Parameters:
Throws:
resizePool
public void resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout, ComputeNodeDeallocationOption deallocationOption)
Resizes the specified pool.
Parameters:
Throws:
resizePool
public void resizePool(String poolId, Integer targetDedicatedNodes, Integer targetLowPriorityNodes, Period resizeTimeout, ComputeNodeDeallocationOption deallocationOption, Iterable
Resizes the specified pool.
Parameters:
Throws:
stopResizePool
public void stopResizePool(String poolId)
Stops a pool resize operation.
Parameters:
Throws:
stopResizePool
public void stopResizePool(String poolId, Iterable
Stops a pool resize operation.
Parameters:
Throws:
updatePoolProperties
public void updatePoolProperties(String poolId, StartTask startTask, Collection
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.
Parameters:
Throws:
updatePoolProperties
public void updatePoolProperties(String poolId, StartTask startTask, Collection
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.
Parameters:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection
Sets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
PoolOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)Parameters:
Returns: