AccountOperations Class

public class AccountOperations implements IInheritedBehaviors

Performs account-related operations on an Azure Batch account.

Method Summary

Modifier and Type Method and Description
Collection<BatchClientBehavior> customBehaviors()

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

PagedList<NodeAgentSku> listNodeAgentSkus()

Lists the node agent SKU values supported by the Batch service.

PagedList<NodeAgentSku> listNodeAgentSkus(DetailLevel detailLevel)

Lists the node agent SKU values supported by the Batch service.

PagedList<NodeAgentSku> listNodeAgentSkus(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Lists the node agent SKU values supported by the Batch service.

PagedList<PoolNodeCounts> listPoolNodeCounts()

Gets the number of nodes in each state, grouped by pool.

PagedList<PoolNodeCounts> listPoolNodeCounts(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)

Gets the number of nodes in each state, grouped by pool.

IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors)

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

Method Details

customBehaviors

public Collection customBehaviors()

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

Overrides:

AccountOperations.customBehaviors()

Returns:

A collection of BatchClientBehavior instances.

listNodeAgentSkus

public PagedList listNodeAgentSkus()

Lists the node agent SKU values supported by the Batch service.

Returns:

A list of NodeAgentSku objects.

Throws:

BatchErrorException - Exception thrown when an error response is received from the Batch service.
IOException - Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

listNodeAgentSkus

public PagedList listNodeAgentSkus(DetailLevel detailLevel)

Lists the node agent SKU values supported by the Batch service.

Parameters:

detailLevel - A DetailLevel used for filtering the list and for controlling which properties are retrieved from the service.

Returns:

A list of NodeAgentSku objects.

Throws:

BatchErrorException - Exception thrown when an error response is received from the Batch service.
IOException - Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

listNodeAgentSkus

public PagedList listNodeAgentSkus(DetailLevel detailLevel, Iterable additionalBehaviors)

Lists the node agent SKU values supported by the Batch service.

Parameters:

detailLevel - A DetailLevel used for filtering the list and for controlling which properties are retrieved from the service.
additionalBehaviors - A collection of BatchClientBehavior instances that are applied to the Batch service request.

Returns:

A list of NodeAgentSku objects.

Throws:

BatchErrorException - Exception thrown when an error response is received from the Batch service.
IOException - Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

listPoolNodeCounts

public PagedList listPoolNodeCounts()

Gets the number of nodes in each state, grouped by pool.

Returns:

A list of NodeAgentSku objects.

Throws:

BatchErrorException - Exception thrown when an error response is received from the Batch service.
IOException - Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

listPoolNodeCounts

public PagedList listPoolNodeCounts(DetailLevel detailLevel, Iterable additionalBehaviors)

Gets the number of nodes in each state, grouped by pool.

Parameters:

detailLevel - A DetailLevel used for filtering the list and for controlling which properties are retrieved from the service.
additionalBehaviors - A collection of BatchClientBehavior instances that are applied to the Batch service request.

Returns:

A list of PoolNodeCounts objects.

Throws:

BatchErrorException - Exception thrown when an error response is received from the Batch service.
IOException - Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

withCustomBehaviors

public IInheritedBehaviors withCustomBehaviors(Collection behaviors)

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

Overrides:

AccountOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)

Parameters:

behaviors - The collection of BatchClientBehavior instances.

Returns:

The current instance.

Applies to