|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobScheduler
Interface for scheduling jobs for services.
Method Summary | |
---|---|
void |
addJobEventListener(JobEventListener listener)
Enables other objects to listen for job events. |
JobTimerTask |
cancelJob(JobID jobId)
Cancels the workflow with the given name. |
Date |
getNextRun(JobID jobId)
Return the date for the next run of the indicated workflow. |
long |
getRunInterval(JobID jobId)
Returns the interval between runs for the indicated workflow. |
void |
schedule(SchedulableJob job,
Long interval)
Adds a job for the scheduler to schedule. |
String |
startJob(SchedulableJob job)
Reschedules the job to start now, |
Method Detail |
---|
void schedule(SchedulableJob job, Long interval)
job
- The jo to schedule.interval
- The interval for how often the workflow should be triggered.JobTimerTask cancelJob(JobID jobId)
jobId
- The ID of the workflow to cancelJob.
String startJob(SchedulableJob job)
job
-
Date getNextRun(JobID jobId)
long getRunInterval(JobID jobId)
void addJobEventListener(JobEventListener listener)
listener
- The callback listener to receive the events.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |