|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - The return value type of the resultpublic interface JobMonitor<R>
The JobMonitor allows monitoring of a Job currently
being executed. Once the job has terminated, the result can be accessed by
getJobResult(). Extensions of JobMonitor might offer
further methods being specific for certain job types
(e.g. ExecJobMonitor for ExecJobs).
| Method Summary | |
|---|---|
JobResult<R> |
getJobResult()
|
void |
interrupt()
Interrupts the process or thread, or does nothing if isRunning() returns false. |
boolean |
isRunning()
|
JobResult<R> |
waitForResult()
Blocks the current thread until the result is available. |
| Method Detail |
|---|
boolean isRunning()
JobResult<R> getJobResult()
null if isRunning() returns
true
JobResult<R> waitForResult()
throws InterruptedException
InterruptedException - if execution has been interrupted, e.g.
by calling interrupt()void interrupt()
isRunning() returns false. The
waitForResult() method receives an InterruptedException
if the job status is affected by this call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||