|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.TimerTask
net.sourceforge.java.util.jobs.scheduling.ScheduledJob
Wraps an IJob for scheduled execution in the
JobManager context.
| Field Summary | |
private JobExecutionStatus |
executionStatus
The execution status object of the ScheduledJob |
private IJob |
job
The IJob scheduled for execution |
private IProgressMonitor |
monitor
The IProgressMonitor to use for reporting the progress of
the wrapped IJob
|
| Fields inherited from class java.util.TimerTask |
|
| Constructor Summary | |
ScheduledJob(IJob job,
IProgressMonitor monitor,
JobExecutionStatus executionStatus)
Creates a new ScheduledJob that wraps up the
specified IJob for automated interval based execution
according to the settings in the specified
JobExecutionStatus.
|
|
| Method Summary | |
boolean |
cancel()
Cancels this ScheduledJobby cancelling further executions.
|
JobExecutionStatus |
getExecutionStatus()
Gets the JobExceutionStatus of this
ScheduledJob.
|
void |
run()
Executes the IJob wrapped up in this
ScheduledJob by invoking the inherited
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)
method.
|
| Methods inherited from class java.util.TimerTask |
scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private IJob job
The IJob scheduled for execution
private IProgressMonitor monitor
The IProgressMonitor to use for reporting the progress of
the wrapped IJob
private JobExecutionStatus executionStatus
The execution status object of the ScheduledJob
| Constructor Detail |
public ScheduledJob(IJob job,
IProgressMonitor monitor,
JobExecutionStatus executionStatus)
Creates a new ScheduledJob that wraps up the
specified IJob for automated interval based execution
according to the settings in the specified
JobExecutionStatus.
job - the IJob to schedule for executionmonitor - the IProgressMonitor to use for reporting
the progress of the specified IJobexecutionStatus - the JobExecutionStatus for the
specified IJob| Method Detail |
public JobExecutionStatus getExecutionStatus()
Gets the JobExceutionStatus of this
ScheduledJob.
JobExceutionStatus of this
ScheduledJobpublic boolean cancel()
Cancels this ScheduledJobby cancelling further executions.
If the wrapped IJob is currently running it is also canceled.
public void run()
Executes the IJob wrapped up in this
ScheduledJob by invoking the inherited
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)
method.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||