|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobSchedulerService
JobSchedulerService provides job execution to be scheduled.
TODO Add additional methods in this interface
| Method Summary | |
|---|---|
java.util.List<JobDescriptor> |
getScheduledJobs()
Returns all scheduled jobs that are still in this JobSchedulerService instance. |
void |
removeScheduledJob(java.lang.String jobId)
Remove the job scheduled with the specified jobId argument. |
void |
scheduleJob(JobDescriptor descriptor)
Schedule the job specified in the descriptor. |
| Method Detail |
|---|
void scheduleJob(JobDescriptor descriptor)
throws java.lang.IllegalArgumentException,
JobSchedulerException
descriptor.
descriptor - The descriptor. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified descriptor is null.
JobIdDuplicateException - Thrown if the job with the descriptor's job id is already scheduled.
JobServiceNotFoundException - Thrown if the job service specified by descriptor argument is not
available.
JobSchedulerException
java.util.List<JobDescriptor> getScheduledJobs()
throws JobSchedulerException
JobSchedulerService instance. Returns an empty list if
there is none.
JobSchedulerService instance.
JobSchedulerException - Thrown if retrieval fails.
void removeScheduledJob(java.lang.String jobId)
throws java.lang.IllegalArgumentException,
JobRemovalFailedException
jobId argument.
jobId - The job id to be removed. This argument must not be null.
java.lang.IllegalArgumentException - Thrown if the specified jobId is null.
JobRemovalFailedException - Thrown if removal of the specified jobId failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||