Interface RepositoryScheduler


public interface RepositoryScheduler
Repository service for scheduling jobs.
  • 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

      void deleteJob(String jobName, String groupName) throws RepositoryException
      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

      void deleteJob(String jobIdentifier) throws RepositoryException
      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

      boolean checkExists(String jobName, String groupName) throws RepositoryException
      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

      void executeJob(String jobName, String groupName) throws RepositoryException
      Trigger the job (execute it now) identified by jobName and groupName.
      Parameters:
      jobName - name of the job
      groupName - name of the group, may be null to indicate the default group.
      Throws:
      RepositoryException
    • executeJob

      void executeJob(String jobIdentifier) throws RepositoryException
      Trigger the job (execute it now) identified by jobIdentifier.
      Parameters:
      jobIdentifier - name of the job
      Throws:
      RepositoryException