Class SchedulerServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(java.lang.String jobName)
      Deletes a job according to its name.
      void deleteJobs()
      Deletes all jobs.
      void executeAgain​(long jobDescriptorId, int delayInMillis)
      Execute a job again
      java.util.List<java.lang.String> getAllJobs()
      Get all jobs on all tenants \/!\Must be replaced by a platform scheduler/!\
      java.util.List<java.lang.String> getJobs()
      Get all jobs on the current tenant
      boolean isExistingJob​(java.lang.String jobName)
      Check if a job exists.
      boolean isStarted()
      Checks whether the service is started.
      boolean isStopped()
      Checks whether the service is shutdown.
      boolean mayFireAgain​(java.lang.String groupName, java.lang.String jobName)  
      void pause()
      Temporary halt the execution of this service.
      void pauseJobs​(long tenantId)
      Pause all jobs running on the tenant
      void rescheduleErroneousTriggers()  
      java.util.Date rescheduleJob​(java.lang.String triggerName, java.lang.String groupName, java.util.Date triggerStartTime)
      Remove (delete) the Trigger with the given key, and store the new given one - which must be associated with the same job (the new trigger must have the job name & group specified) - however, the new trigger need not have the same name as the old trigger.
      void resume()
      resume the execution the service
      void resumeJobs​(long tenantId)
      Resume all jobs paused on the tenant
      void retryJobThatFailed​(long jobDescriptorId)
      Retry a job once In addition to executing the job again, this will also delete failed job logs
      void retryJobThatFailed​(long jobDescriptorId, java.util.List<SJobParameter> parameters)
      Change parameters of a job and retry it once In addition to executing the job again, this will also delete failed job logs
      void schedule​(SJobDescriptor jobDescriptor, java.util.List<SJobParameter> parameters, Trigger trigger)
      Schedules a job.
      void schedule​(SJobDescriptor jobDescriptor, Trigger trigger)
      Schedules a job.
      void start()
      Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
      void stop()
      Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait