|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.objectweb.proactive.core.body.ft.servers.util.ActiveQueue
This class is a generic job queue.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ActiveQueue(java.lang.String name)
|
Method Summary | |
void |
addJob(ActiveQueueJob j)
Add a job in the active queue. |
JobBarrier |
addJobWithBarrier(ActiveQueueJob j)
Add a job in the active queue. |
java.util.ArrayList |
getQueue()
return the current queue of jobs to perform |
void |
killMe()
Stop the thread. |
ActiveQueueJob |
removeJob()
Return the oldest job in queue and remove it from the queue |
void |
run()
The run method of the thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActiveQueue(java.lang.String name)
Method Detail |
public java.util.ArrayList getQueue()
public void addJob(ActiveQueueJob j)
j
- the job to add.public JobBarrier addJobWithBarrier(ActiveQueueJob j)
j
- the job to add.
public ActiveQueueJob removeJob()
public void killMe()
public void run()
killMe()
is called.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |