Interface SchedulerService

All Superinterfaces:
LifecycleService, PlatformLifecycleService
All Known Implementing Classes:
SchedulerServiceImpl

public interface SchedulerService extends PlatformLifecycleService
Since:
6.0
Author:
Matthieu Chaffotte
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
    This service will fire the following events : SCHEDULER_STARTED = "SCHEDULER_STARTED" SCHEDULER_STOPPED = "SCHEDULER_STOPPED" JOB_FAILED = "JOB_FAILED"
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(String jobName)
    Deletes a job according to its name.
    void
    Deletes all jobs.
    void
    executeAgain(long jobDescriptorId, int delayInMillis)
    Execute a job again
    Get all jobs
    boolean
    Check if a job exists.
    boolean
    Checks whether the service is started.
    boolean
    Checks whether the service is shutdown.
    boolean
     
    void
    Pause all running jobs
    void
     
    rescheduleJob(String triggerName, 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 specified) - however, the new trigger need not have the same name as the old trigger.
    void
    Resume all paused jobs
    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, 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, List<SJobParameter> parameters, Trigger trigger)
    Schedules a job.
    void
    schedule(SJobDescriptor jobDescriptor, Trigger trigger)
    Schedules a job.
    void
    Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.
    void
    Note that once a scheduler is shutdown, it cannot be restarted without being re-instantiated.

    Methods inherited from interface org.bonitasoft.engine.commons.LifecycleService

    pause, resume