ApplicationOperations Class

public class ApplicationOperations implements IInheritedBehaviors

Performs application-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.

ApplicationSummary getApplication(String applicationId)

Gets information about the specified application.

ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors)

Gets information about the specified application.

PagedList<ApplicationSummary> listApplications()

Lists the applications in the Batch account.

PagedList<ApplicationSummary> listApplications(Iterable<BatchClientBehavior> additionalBehaviors)

Lists the applications in the Batch account.

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:

ApplicationOperations.customBehaviors()

Returns:

A collection of BatchClientBehavior instances.

getApplication

public ApplicationSummary getApplication(String applicationId)

Gets information about the specified application.

Parameters:

applicationId - The ID of the application to get.

Returns:

An ApplicationSummary containing information about the specified application.

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.

getApplication

public ApplicationSummary getApplication(String applicationId, Iterable additionalBehaviors)

Gets information about the specified application.

Parameters:

applicationId - The ID of the application to get.
additionalBehaviors - A collection of BatchClientBehavior instances that are applied to the Batch service request.

Returns:

An ApplicationSummary containing information about the specified application.

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.

listApplications

public PagedList listApplications()

Lists the applications in the Batch account.

Returns:

A list of ApplicationSummary 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.

listApplications

public PagedList listApplications(Iterable additionalBehaviors)

Lists the applications in the Batch account.

Parameters:

additionalBehaviors - A collection of BatchClientBehavior instances that are applied to the Batch service request.

Returns:

A list of ApplicationSummary 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:

ApplicationOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)

Parameters:

behaviors - The collection of BatchClientBehavior instances.

Returns:

The current instance.

Applies to