|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.scheduler.Queue
public class Queue
This is the class definition of the queue that shall be used to store the jobs to be started in a HashMap.
Constructor Summary | |
---|---|
Queue()
|
Method Summary | |
---|---|
boolean |
containsId(java.lang.String jobId)
Search for a job by job Id. |
GenericJob |
get(java.lang.String jobId)
returns the job associated with the job Id. |
boolean |
isEmpty()
returns true if the queue is empty, false otherwise. |
java.util.Set |
keySet()
Gives a list of the IDs of the waiting jobs. |
void |
put(GenericJob job)
Inserts the job to the queue and give it an Id. |
GenericJob |
remove(java.lang.String jobId)
removes and returns the job associated with the job Id from the queue. |
int |
size()
Returns the number of the waiting jobs. |
java.util.Collection |
values()
returns a collection of the genericJob description |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public int size()
public boolean containsId(java.lang.String jobId)
Id
- is the id of the job.
public void put(GenericJob job) throws QueueFullException
job
- contains the description of the job to be deployed.
QueueFullException
- whenever the queue is full.public java.util.Set keySet()
public GenericJob get(java.lang.String jobId)
Id
- is the Id of the job needed
public GenericJob remove(java.lang.String jobId)
Id
- is the Id of the job needed
public boolean isEmpty()
public java.util.Collection values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |