|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.grid.server.Job
This class represents a job to be executed by the compute engine.
Field Summary | |
private boolean |
asynch
Whether this job is to be executed asynchronously or not |
private Computable |
job
The object to process |
private java.lang.String |
jobId
The id of this job |
Constructor Summary | |
Job(java.lang.String jobId,
Computable job)
Creates a new instance of Job |
|
Job(java.lang.String jobId,
Computable job,
boolean asynch)
Creates a new instance of Job |
Method Summary | |
java.io.Serializable |
compute()
This method causes the job to be executed. |
Computable |
getJob()
Returns the object to process |
java.lang.String |
getJobId()
Returns the id of this job |
boolean |
isAsynch()
Returns whether or not this job should be executed asynchronously |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String jobId
private Computable job
private boolean asynch
Constructor Detail |
public Job(java.lang.String jobId, Computable job)
jobId
- the id of this jobjob
- the object to processpublic Job(java.lang.String jobId, Computable job, boolean asynch)
jobId
- the id of this jobjob
- the object to processasynch
- whether this job should be executed asynchronouslyMethod Detail |
public java.lang.String getJobId()
public Computable getJob()
public boolean isAsynch()
public java.io.Serializable compute() throws ComputeException
compute
in interface Computable
ComputeException
- If an error occurs during execution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |