public class JobScheduleOperations extends Object implements IInheritedBehaviors
Modifier and Type | Method and Description |
---|---|
void |
createJobSchedule(JobScheduleAddParameter jobSchedule)
Adds a job schedule to the Batch account.
|
void |
createJobSchedule(JobScheduleAddParameter jobSchedule,
Iterable<BatchClientBehavior> additionalBehaviors)
Adds a job schedule to the Batch account.
|
void |
createJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification)
Adds a job schedule to the Batch account.
|
void |
createJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification,
Iterable<BatchClientBehavior> additionalBehaviors)
Adds a job schedule to the Batch account.
|
Collection<BatchClientBehavior> |
customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.
|
void |
deleteJobSchedule(String jobScheduleId)
Deletes the specified job schedule.
|
void |
deleteJobSchedule(String jobScheduleId,
Iterable<BatchClientBehavior> additionalBehaviors)
Deletes the specified job schedule.
|
void |
disableJobSchedule(String jobScheduleId)
Disables the specified job schedule.
|
void |
disableJobSchedule(String jobScheduleId,
Iterable<BatchClientBehavior> additionalBehaviors)
Disables the specified job schedule.
|
void |
enableJobSchedule(String jobScheduleId)
Enables the specified job schedule, allowing jobs to be created according to its
Schedule . |
void |
enableJobSchedule(String jobScheduleId,
Iterable<BatchClientBehavior> additionalBehaviors)
Enables the specified job schedule, allowing jobs to be created according to its
Schedule . |
boolean |
existsJobSchedule(String jobScheduleId)
Checks whether the specified job schedule exists.
|
boolean |
existsJobSchedule(String jobScheduleId,
Iterable<BatchClientBehavior> additionalBehaviors)
Checks whether the specified job schedule exists.
|
CloudJobSchedule |
getJobSchedule(String jobScheduleId)
Gets the specified
CloudJobSchedule . |
CloudJobSchedule |
getJobSchedule(String jobScheduleId,
DetailLevel detailLevel)
Gets the specified
CloudJobSchedule . |
CloudJobSchedule |
getJobSchedule(String jobScheduleId,
DetailLevel detailLevel,
Iterable<BatchClientBehavior> additionalBehaviors)
Gets the specified
CloudJobSchedule . |
List<CloudJobSchedule> |
listJobSchedules()
Lists the
job schedules in the Batch account. |
List<CloudJobSchedule> |
listJobSchedules(DetailLevel detailLevel)
Lists the
job schedules in the Batch account. |
List<CloudJobSchedule> |
listJobSchedules(DetailLevel detailLevel,
Iterable<BatchClientBehavior> additionalBehaviors)
Lists the
job schedules in the Batch account. |
void |
patchJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification)
Updates the specified job schedule.
|
void |
patchJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification,
List<MetadataItem> metadata)
Updates the specified job schedule.
|
void |
patchJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification,
List<MetadataItem> metadata,
Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified job schedule.
|
void |
terminateJobSchedule(String jobScheduleId)
Terminates the specified job schedule.
|
void |
terminateJobSchedule(String jobScheduleId,
Iterable<BatchClientBehavior> additionalBehaviors)
Terminates the specified job schedule.
|
void |
updateJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification)
Updates the specified job schedule.
|
void |
updateJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification,
List<MetadataItem> metadata)
Updates the specified job schedule.
|
void |
updateJobSchedule(String jobScheduleId,
Schedule schedule,
JobSpecification jobSpecification,
List<MetadataItem> metadata,
Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified job schedule.
|
IInheritedBehaviors |
withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.
|
public Collection<BatchClientBehavior> customBehaviors()
customBehaviors
in interface IInheritedBehaviors
BatchClientBehavior
instances.public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
withCustomBehaviors
in interface IInheritedBehaviors
behaviors
- The collection of BatchClientBehavior
instances.public boolean existsJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule which you want to check.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.public boolean existsJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule which you want to check.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void deleteJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.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.public void deleteJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public CloudJobSchedule getJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
CloudJobSchedule
.jobScheduleId
- The ID of the job schedule.CloudJobSchedule
containing information about the specified Azure Batch job schedule.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.public CloudJobSchedule getJobSchedule(String jobScheduleId, DetailLevel detailLevel) throws BatchErrorException, IOException
CloudJobSchedule
.jobScheduleId
- The ID of the job schedule.detailLevel
- A DetailLevel
used for controlling which properties are retrieved from the service.CloudJobSchedule
containing information about the specified Azure Batch job schedule.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.public CloudJobSchedule getJobSchedule(String jobScheduleId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
CloudJobSchedule
.jobScheduleId
- The ID of the job schedule.detailLevel
- A DetailLevel
used for controlling which properties are retrieved from the service.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.CloudJobSchedule
containing information about the specified Azure Batch job schedule.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.public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.schedule
- The schedule according to which jobs will be created. If null, any existing schedule is left unchanged.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification. If null, the existing job specification is left unchanged.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.public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule. If null, any existing schedule is left unchanged.schedule
- The schedule according to which jobs will be created.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification. If null, the existing job specification is left unchanged.metadata
- A list of name-value pairs associated with the job schedule as metadata. If null, the existing metadata are left unchanged.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.public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.schedule
- The schedule according to which jobs will be created. If null, any existing schedule is left unchanged.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification. If null, the existing job specification is left unchanged.metadata
- A list of name-value pairs associated with the job schedule as metadata. If null, the existing metadata are left unchanged.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.schedule
- The schedule according to which jobs will be created. If null, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.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.public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.schedule
- The schedule according to which jobs will be created. If null, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.metadata
- A list of name-value pairs associated with the job schedule as metadata. If null, it takes the default value of an empty list; in effect, any existing metadata is deleted.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.public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.schedule
- The schedule according to which jobs will be created. If null, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.jobSpecification
- The details of the jobs to be created on this schedule. Updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.metadata
- A list of name-value pairs associated with the job schedule as metadata. If null, it takes the default value of an empty list; in effect, any existing metadata is deleted.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void disableJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.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.public void disableJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void enableJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
Schedule
.jobScheduleId
- The ID of the job schedule.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.public void enableJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
Schedule
.jobScheduleId
- The ID of the job schedule.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void terminateJobSchedule(String jobScheduleId) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.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.public void terminateJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- The ID of the job schedule.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void createJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification) throws BatchErrorException, IOException
jobScheduleId
- A string that uniquely identifies the job schedule within the account.schedule
- The schedule according to which jobs will be created.jobSpecification
- Details about the jobs to be created on this schedule.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.public void createJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobScheduleId
- A string that uniquely identifies the job schedule within the account.schedule
- The schedule according to which jobs will be created.jobSpecification
- Details about the jobs to be created on this schedule.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public void createJobSchedule(JobScheduleAddParameter jobSchedule) throws BatchErrorException, IOException
jobSchedule
- The job schedule to be added.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.public void createJobSchedule(JobScheduleAddParameter jobSchedule, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
jobSchedule
- The job schedule to be added.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.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.public List<CloudJobSchedule> listJobSchedules() throws BatchErrorException, IOException
job schedules
in the Batch account.CloudJobSchedule
objects.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.public List<CloudJobSchedule> listJobSchedules(DetailLevel detailLevel) throws BatchErrorException, IOException
job schedules
in the Batch account.detailLevel
- A DetailLevel
used for filtering the list and for controlling which properties are retrieved from the service.CloudJobSchedule
objects.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.public List<CloudJobSchedule> listJobSchedules(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
job schedules
in the Batch account.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.CloudJobSchedule
objects.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.Copyright © 2019. All rights reserved.