Interface RepositoryScheduler
public interface RepositoryScheduler
Repository service for scheduling jobs.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkExists
(String jobName, String groupName) Return whether a job already exists.void
Removes a job and its associated triggers.void
Removes a job and its associated triggers.void
executeJob
(String jobIdentifier) Trigger the job (execute it now) identified byjobIdentifier
.void
executeJob
(String jobName, String groupName) Trigger the job (execute it now) identified byjobName
andgroupName
.void
scheduleJob
(RepositoryJobInfo jobInfo, RepositoryJobTrigger trigger) Schedule a job.
-
Method Details
-
scheduleJob
void scheduleJob(RepositoryJobInfo jobInfo, RepositoryJobTrigger trigger) throws RepositoryException Schedule a job.- Parameters:
jobInfo
- information about the job to schedule.trigger
- when to schedule the job.- Throws:
RepositoryException
- if an error occurs while trying to schedule the job.
-
deleteJob
Removes a job and its associated triggers.- Parameters:
jobName
- name of the job.groupName
- name of the group, may be null to indicate the default group.- Throws:
RepositoryException
- if an error occurs while trying to remove the job.
-
deleteJob
Removes a job and its associated triggers.- Parameters:
jobIdentifier
- name of the job.- Throws:
RepositoryException
- if an error occurs while trying to remove the job.
-
checkExists
Return whether a job already exists.- Parameters:
jobName
- name of the job.groupName
- name of the the group, may be null to indicate the default group.- Returns:
- whether the job exists or not
- Throws:
RepositoryException
- if an error occurs while checking for the existence of the job.
-
executeJob
Trigger the job (execute it now) identified byjobName
andgroupName
.- Parameters:
jobName
- name of the jobgroupName
- name of the group, may be null to indicate the default group.- Throws:
RepositoryException
-
executeJob
Trigger the job (execute it now) identified byjobIdentifier
.- Parameters:
jobIdentifier
- name of the job- Throws:
RepositoryException
-