public interface IJobScheduler
Modifier and Type | Method and Description |
---|---|
void |
addJob(IJob job)
Add a job to the scheduler.
|
void |
addJobSchedulerListener(IJobSchedulerListener listener)
Add one more JobSchedulerListener.
|
void |
cancelJob(IJob job)
this method will invoke the cancel() method of the given job.
|
Iterator |
getJobIterator()
method can be used to get an interator with which the list of all known
jobs can be iterated
|
IJob[] |
getJobs()
Get all jobs the scheduler knows listed in an array.
|
int |
getNumberOfWaitingBackgroundJobs()
Method returns the number of waiting background jobs, e.g. for giving
the possibility of informing the user about this number.
|
int |
getNumberOfWaitingForegroundJobs()
Method returns the number of waiting foreground jobs, e.g. for giving
the possibility of informing the user about this number.
|
Iterator |
getRunningJobIterator()
Get all jobs, that are working.
|
IJob[] |
getRunningJobs()
Get all jobs, that are working.
|
Iterator |
getWaitingJobIterator()
Get all jobs, that are waiting.
|
IJob[] |
getWaitingJobs()
Get all jobs, that are waiting.
|
void |
removeJobSchedulerListener(IJobSchedulerListener listener)
Remove a JobSchedulerListener.
|
void addJob(IJob job)
job
- the job you want to addvoid cancelJob(IJob job)
job
- the job that should be cancelledIterator getJobIterator()
IJob[] getJobs()
Iterator getRunningJobIterator()
IJob[] getRunningJobs()
Iterator getWaitingJobIterator()
IJob[] getWaitingJobs()
int getNumberOfWaitingBackgroundJobs()
int getNumberOfWaitingForegroundJobs()
void addJobSchedulerListener(IJobSchedulerListener listener)
listener
- the listener, that should be addedvoid removeJobSchedulerListener(IJobSchedulerListener listener)
listener
- the listener, that should be removed