Package com.microsoft.azure.batch
Class BatchClient
- java.lang.Object
-
- com.microsoft.azure.batch.BatchClient
-
public class BatchClient extends Object
A client for an Azure Batch account, used to access the Batch service.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountOperations
accountOperations()
Gets anAccountOperations
object for performing account-related operations on the associated account.ApplicationOperations
applicationOperations()
Gets anApplicationOperations
object for performing application-related operations on the associated account.CertificateOperations
certificateOperations()
Gets aCertificateOperations
object for performing certificate-related operations on the associated account.ComputeNodeOperations
computeNodeOperations()
Gets aComputeNodeOperations
object for performing compute node-related operations on the associated account.Collection<BatchClientBehavior>
customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.FileOperations
fileOperations()
Gets aFileOperations
object for performing file-related operations on the associated account.JobOperations
jobOperations()
Gets aJobOperations
object for performing job-related operations on the associated account.JobScheduleOperations
jobScheduleOperations()
Gets aJobScheduleOperations
object for performing job schedule-related operations on the associated account.static BatchClient
open(BatchCredentials credentials)
Creates an instance ofBatchClient
associated with the specified credentials.static BatchClient
open(com.microsoft.rest.RestClient restClient, String baseUrl)
Creates an instance ofBatchClient
associated with the specified restClient and baseurl.PoolOperations
poolOperations()
Gets aPoolOperations
object for performing pool-related operations on the associated account.BatchServiceClient
protocolLayer()
Gets the protocol layer service client that issues requests to the Azure Batch service.TaskOperations
taskOperations()
Gets aTaskOperations
object for performing task-related operations on the associated account.BatchClient
withCustomBehaviors(Collection<BatchClientBehavior> customBehaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.
-
-
-
Method Detail
-
protocolLayer
public BatchServiceClient protocolLayer()
Gets the protocol layer service client that issues requests to the Azure Batch service.- Returns:
- The protocol layer client.
-
open
public static BatchClient open(BatchCredentials credentials)
Creates an instance ofBatchClient
associated with the specified credentials.- Parameters:
credentials
- ABatchCredentials
object specifying the Batch account credentials.- Returns:
- The new
BatchClient
instance.
-
open
public static BatchClient open(com.microsoft.rest.RestClient restClient, String baseUrl)
Creates an instance ofBatchClient
associated with the specified restClient and baseurl.- Parameters:
restClient
- ARestClient
object specifying the definition of rest client used to interact with batch endpoint.baseUrl
- A String object specifying the the batch end point.- Returns:
- The new
BatchClient
instance.
-
certificateOperations
public CertificateOperations certificateOperations()
Gets aCertificateOperations
object for performing certificate-related operations on the associated account.- Returns:
- An instance of the
CertificateOperations
class.
-
jobOperations
public JobOperations jobOperations()
Gets aJobOperations
object for performing job-related operations on the associated account.- Returns:
- An instance of the
JobOperations
class.
-
taskOperations
public TaskOperations taskOperations()
Gets aTaskOperations
object for performing task-related operations on the associated account.- Returns:
- An instance of the
TaskOperations
class.
-
jobScheduleOperations
public JobScheduleOperations jobScheduleOperations()
Gets aJobScheduleOperations
object for performing job schedule-related operations on the associated account.- Returns:
- An instance of the
JobScheduleOperations
class.
-
fileOperations
public FileOperations fileOperations()
Gets aFileOperations
object for performing file-related operations on the associated account.- Returns:
- An instance of the
FileOperations
class.
-
poolOperations
public PoolOperations poolOperations()
Gets aPoolOperations
object for performing pool-related operations on the associated account.- Returns:
- An instance of the
PoolOperations
class.
-
computeNodeOperations
public ComputeNodeOperations computeNodeOperations()
Gets aComputeNodeOperations
object for performing compute node-related operations on the associated account.- Returns:
- An instance of the
ComputeNodeOperations
class.
-
applicationOperations
public ApplicationOperations applicationOperations()
Gets anApplicationOperations
object for performing application-related operations on the associated account.- Returns:
- An instance of the
ApplicationOperations
class.
-
accountOperations
public AccountOperations accountOperations()
Gets anAccountOperations
object for performing account-related operations on the associated account.- Returns:
- An instance of the
AccountOperations
class.
-
customBehaviors
public Collection<BatchClientBehavior> customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.- Returns:
- The collection of
BatchClientBehavior
instances.
-
withCustomBehaviors
public BatchClient withCustomBehaviors(Collection<BatchClientBehavior> customBehaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.- Parameters:
customBehaviors
- The collection ofBatchClientBehavior
instances.- Returns:
- The current instance.
-
-