|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface marks a class that can be executed by the compute engine.
Method Summary | |
void |
cancel()
This method cancels a running job. |
void |
checkpoint()
This method is used to tell the job that a checkpoint is imminent and that it should save its state now. |
java.io.Serializable |
compute(Job job)
This method causes this class to execute |
void |
resume()
This method resumes a suspended job. |
void |
suspend()
This methods suspend a running job. |
Method Detail |
public java.io.Serializable compute(Job job) throws ComputeException
job
- The Job object associated with this job. The Job object is used
to access additional information about the job, such as job id and
properties and is used to access the compute engine logging mechanism.
ComputeException
- if an error occurs during executionpublic void checkpoint() throws NotInterruptableException
NotInterruptableException
- Thrown when the implemetation does not allow the job to be interrupted for
checkpointing.public void cancel() throws NotInterruptableException
NotInterruptableException
- Thrown when the implemetation does not allow the job to be interrupted for
cancelation.public void suspend() throws NotInterruptableException
NotInterruptableException
- Thrown when the implemetation does not allow the job to be interrupted for
suspension.public void resume()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |