public interface RepositoryScheduler
Modifier and Type | Method and Description |
---|---|
boolean |
checkExists(String jobName,
String groupName)
Return whether a job already exists.
|
void |
deleteJob(String jobIdentifier)
Removes a job and its associated triggers.
|
void |
deleteJob(String jobName,
String groupName)
Removes a job and its associated triggers.
|
void |
executeJob(String jobIdentifier)
Trigger the job (execute it now) identified by
jobIdentifier . |
void |
executeJob(String jobName,
String groupName)
Trigger the job (execute it now) identified by
jobName and groupName . |
void |
scheduleJob(RepositoryJobInfo jobInfo,
RepositoryJobTrigger trigger)
Schedule a job.
|
void scheduleJob(RepositoryJobInfo jobInfo, RepositoryJobTrigger trigger) throws javax.jcr.RepositoryException
jobInfo
- information about the job to schedule.trigger
- when to schedule the job.javax.jcr.RepositoryException
- if an error occurs while trying to schedule the job.void deleteJob(String jobName, String groupName) throws javax.jcr.RepositoryException
jobName
- name of the job.groupName
- name of the group, may be null to indicate the default group.javax.jcr.RepositoryException
- if an error occurs while trying to remove the job.void deleteJob(String jobIdentifier) throws javax.jcr.RepositoryException
jobIdentifier
- name of the job.javax.jcr.RepositoryException
- if an error occurs while trying to remove the job.boolean checkExists(String jobName, String groupName) throws javax.jcr.RepositoryException
jobName
- name of the job.groupName
- name of the the group, may be null to indicate the default group.javax.jcr.RepositoryException
- if an error occurs while checking for the existence of the job.void executeJob(String jobName, String groupName) throws javax.jcr.RepositoryException
jobName
and groupName
.jobName
- name of the jobgroupName
- name of the group, may be null to indicate the default group.javax.jcr.RepositoryException
void executeJob(String jobIdentifier) throws javax.jcr.RepositoryException
jobIdentifier
.jobIdentifier
- name of the jobjavax.jcr.RepositoryException
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.