Package com.microsoft.azure.batch
Class ApplicationOperations
- java.lang.Object
-
- com.microsoft.azure.batch.ApplicationOperations
-
- All Implemented Interfaces:
IInheritedBehaviors
public class ApplicationOperations extends Object implements IInheritedBehaviors
Performs application-related operations on an Azure Batch account.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.com.microsoft.azure.PagedList<ApplicationSummary>
listApplications()
Lists theapplications
in the Batch account.com.microsoft.azure.PagedList<ApplicationSummary>
listApplications(Iterable<BatchClientBehavior> additionalBehaviors)
Lists theapplications
in the Batch account.IInheritedBehaviors
withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.
-
-
-
Method Detail
-
customBehaviors
public Collection<BatchClientBehavior> customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.- Specified by:
customBehaviors
in interfaceIInheritedBehaviors
- Returns:
- A collection of
BatchClientBehavior
instances.
-
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.- Specified by:
withCustomBehaviors
in interfaceIInheritedBehaviors
- Parameters:
behaviors
- The collection ofBatchClientBehavior
instances.- Returns:
- The current instance.
-
listApplications
public com.microsoft.azure.PagedList<ApplicationSummary> listApplications() throws BatchErrorException, IOException
Lists theapplications
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 com.microsoft.azure.PagedList<ApplicationSummary> listApplications(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
Lists theapplications
in the Batch account.- Parameters:
additionalBehaviors
- A collection ofBatchClientBehavior
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.
-
getApplication
public ApplicationSummary getApplication(String applicationId) throws BatchErrorException, IOException
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<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
Gets information about the specified application.- Parameters:
applicationId
- The ID of the application to get.additionalBehaviors
- A collection ofBatchClientBehavior
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.
-
-