|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.farming.common.JobQueue
This class implements a job queue for each compute server. The queue also has listeners associated with it. So when a job is added to the queue, the listeners are notified so that they can take action
| Constructor Summary | |
JobQueue()
Constructor |
|
| Method Summary | |
void |
addJob(Job j)
Adds a job to the queue and notifies any listener that is registered with this queue |
void |
addListener(JobQueueListener jql)
Adds/registers a listener to the job queue. |
Job |
getJob()
Gets the job at the head of the job queue and removes it from the job queue Throws an exception if queue empty |
void |
removeListener(JobQueueListener jql)
Removes/ deregisters the listener from the queue |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JobQueue()
| Method Detail |
public void addJob(Job j)
j - - the job to be added to the queue.public void addListener(JobQueueListener jql)
jql -
public void removeListener(JobQueueListener jql)
throws java.lang.Exception
jql -
java.lang.Exception
public Job getJob()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||