Method Summary |
|
public void | addJob(JobEntry je) Add a new job to the queue. |
public JobEntry | getJob(int oid) Get a specific Job from Storage.
Parameters: oid - The int id for the job. |
public synchronized Thread | getThread() Return the thread being used to process commands, or null if
there is no such thread. |
public void | init() Initializes the SchedulerService. |
public void | init(ServletConfig config) Called the first time the Service is used.
Load all the jobs from cold storage. |
public boolean | isEnabled() Determines if the scheduler service is currently enabled. |
public List | listJobs() List jobs in the queue. |
public void | removeJob(JobEntry je) Remove a job from the queue. |
public synchronized void | restart() Start (or restart) a thread to process commands, or wake up an
existing thread if one is already running. |
protected void | setEnabled(boolean enabled) |
public void | shutdown() Shutdowns the service. |
public synchronized void | startScheduler() Starts or restarts the scheduler if not already running. |
public synchronized void | stopScheduler() Stops the scheduler if it is currently running. |
public void | updateJob(JobEntry je) Add or update a job. |