JobScheduleOperations Class
- java.
lang. Object - IInheritedBehaviors
- com.
microsoft. azure. batch. JobScheduleOperations
- com.
public class JobScheduleOperations implements IInheritedBehaviors
Performs job schedule-related operations on an Azure Batch account.
Method Summary
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<Batch |
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. Disabled schedules do not create new jobs, but may be re-enabled later. |
void |
disableJobSchedule(String jobScheduleId, Iterable<BatchClientBehavior> additionalBehaviors)
Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later. |
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. |
Cloud |
getJobSchedule(String jobScheduleId)
Gets the specified CloudJobSchedule. |
Cloud |
getJobSchedule(String jobScheduleId, DetailLevel detailLevel)
Gets the specified CloudJobSchedule. |
Cloud |
getJobSchedule(String jobScheduleId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
Gets the specified CloudJobSchedule. |
PagedList<Cloud |
listJobSchedules()
Lists the job schedules in the Batch account. |
PagedList<Cloud |
listJobSchedules(DetailLevel detailLevel)
Lists the job schedules in the Batch account. |
PagedList<Cloud |
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. This method only replaces the properties specified with non-null values. |
void |
patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata)
Updates the specified job schedule. This method only replaces the properties specified with non-null values. |
void |
patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified job schedule. This method only replaces the properties specified with non-null values. |
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. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule. |
void |
updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata)
Updates the specified job schedule. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule. |
void |
updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List<MetadataItem> metadata, Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified job schedule. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule. |
IInherited |
withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service. |
Method Details
createJobSchedule
public void createJobSchedule(JobScheduleAddParameter jobSchedule)
Adds a job schedule to the Batch account.
Parameters:
Throws:
createJobSchedule
public void createJobSchedule(JobScheduleAddParameter jobSchedule, Iterable
Adds a job schedule to the Batch account.
Parameters:
Throws:
createJobSchedule
public void createJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification)
Adds a job schedule to the Batch account.
Parameters:
Throws:
createJobSchedule
public void createJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, Iterable
Adds a job schedule to the Batch account.
Parameters:
Throws:
customBehaviors
public Collection
Gets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
JobScheduleOperations.customBehaviors()Returns:
deleteJobSchedule
public void deleteJobSchedule(String jobScheduleId)
Deletes the specified job schedule.
Parameters:
Throws:
deleteJobSchedule
public void deleteJobSchedule(String jobScheduleId, Iterable
Deletes the specified job schedule.
Parameters:
Throws:
disableJobSchedule
public void disableJobSchedule(String jobScheduleId)
Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later.
Parameters:
Throws:
disableJobSchedule
public void disableJobSchedule(String jobScheduleId, Iterable
Disables the specified job schedule. Disabled schedules do not create new jobs, but may be re-enabled later.
Parameters:
Throws:
enableJobSchedule
public void enableJobSchedule(String jobScheduleId)
Enables the specified job schedule, allowing jobs to be created according to its Schedule.
Parameters:
Throws:
enableJobSchedule
public void enableJobSchedule(String jobScheduleId, Iterable
Enables the specified job schedule, allowing jobs to be created according to its Schedule.
Parameters:
Throws:
existsJobSchedule
public boolean existsJobSchedule(String jobScheduleId)
Checks whether the specified job schedule exists.
Parameters:
Returns:
Throws:
existsJobSchedule
public boolean existsJobSchedule(String jobScheduleId, Iterable
Checks whether the specified job schedule exists.
Parameters:
Returns:
Throws:
getJobSchedule
public CloudJobSchedule getJobSchedule(String jobScheduleId)
Gets the specified CloudJobSchedule.
Parameters:
Returns:
Throws:
getJobSchedule
public CloudJobSchedule getJobSchedule(String jobScheduleId, DetailLevel detailLevel)
Gets the specified CloudJobSchedule.
Parameters:
Returns:
Throws:
getJobSchedule
public CloudJobSchedule getJobSchedule(String jobScheduleId, DetailLevel detailLevel, Iterable
Gets the specified CloudJobSchedule.
Parameters:
Returns:
Throws:
listJobSchedules
public PagedList
Lists the job schedules in the Batch account.
Returns:
Throws:
listJobSchedules
public PagedList
Lists the job schedules in the Batch account.
Parameters:
Returns:
Throws:
listJobSchedules
public PagedList
Lists the job schedules in the Batch account.
Parameters:
Returns:
Throws:
patchJobSchedule
public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification)
Updates the specified job schedule. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJobSchedule
public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List
Updates the specified job schedule. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJobSchedule
public void patchJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List
Updates the specified job schedule. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
terminateJobSchedule
public void terminateJobSchedule(String jobScheduleId)
Terminates the specified job schedule.
Parameters:
Throws:
terminateJobSchedule
public void terminateJobSchedule(String jobScheduleId, Iterable
Terminates the specified job schedule.
Parameters:
Throws:
updateJobSchedule
public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification)
Updates the specified job schedule. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule.
Parameters:
Throws:
updateJobSchedule
public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List
Updates the specified job schedule. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule.
Parameters:
Throws:
updateJobSchedule
public void updateJobSchedule(String jobScheduleId, Schedule schedule, JobSpecification jobSpecification, List
Updates the specified job schedule. This method performs a full replace of all the updatable properties of the job schedule. For example, if the schedule parameter is null, then the Batch service removes the job schedule’s existing schedule and replaces it with the default schedule.
Parameters:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection
Sets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
JobScheduleOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)Parameters:
Returns: