|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.scheduler.JobMonitor
public class JobMonitor
Object responsible for notifying other objects interested in job completions.
Constructor Summary | |
---|---|
JobMonitor(EventQueue responseQueue,
int jobId)
The constructor. |
Method Summary | |
---|---|
int |
getJobId()
Returns the Job identification. |
void |
jobFinished(JobEntry job)
Notifies who is waiting for the Job . |
void |
jobNotFound()
Notifies that the job of interest does not exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobMonitor(EventQueue responseQueue, int jobId)
responseQueue
- A response EventQueue
.jobId
- A job identification.Method Detail |
---|
public void jobFinished(JobEntry job)
Job
. Puts a
WaitForJobResponseEvent in the responseQueue.
jobFinished
in interface JobInterested
job
- Job
which has finished.public int getJobId()
Job
identification.
getJobId
in interface JobInterested
Job
identification.public void jobNotFound()
JobInterested
jobNotFound
in interface JobInterested
JobInterested.jobNotFound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |