Interface RepositoryScheduler


  • public interface RepositoryScheduler
    Repository service for scheduling jobs.
    • Method Detail

      • 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