|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.queue.AbstractJPPFQueue
org.jppf.server.queue.JPPFPriorityQueue
public class JPPFPriorityQueue
A JPPF queue whose elements are ordered by decreasing priority.
| Field Summary | |
|---|---|
protected JPPFJobManager |
jobManager
The job manager. |
protected JPPFDriverStatsManager |
statsManager
The driver stats manager. |
| Fields inherited from class org.jppf.server.queue.AbstractJPPFQueue |
|---|
latestMaxSize, lock, queueListeners, sizeMap |
| Constructor Summary | |
|---|---|
JPPFPriorityQueue()
Initialize this queue. |
|
| Method Summary | |
|---|---|
void |
addBundle(BundleWrapper bundleWrapper)
Add an object to the queue, and notify all listeners about it. |
void |
clearSchedules(String jobUuid)
Clear all the scheduled actions associated with a job. |
int |
getMaxBundleSize()
Get the maximum bundle size for the bundles present in the queue. |
boolean |
isEmpty()
Determine whether the queue is empty or not. |
Iterator<BundleWrapper> |
iterator()
Get an iterator on the task bundles in this queue. |
BundleWrapper |
nextBundle(BundleWrapper bundleWrapper,
int nbTasks)
Get the next object in the queue. |
BundleWrapper |
nextBundle(int nbTasks)
Get the next object in the queue. |
BundleWrapper |
removeBundle(BundleWrapper bundleWrapper)
Remove the specified bundle from the queue. |
| Methods inherited from class org.jppf.server.queue.AbstractJPPFQueue |
|---|
addQueueListener, fireQueueEvent, getLock, getQueueListeners, getSize, removeQueueListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JPPFDriverStatsManager statsManager
protected JPPFJobManager jobManager
| Constructor Detail |
|---|
public JPPFPriorityQueue()
| Method Detail |
|---|
public void addBundle(BundleWrapper bundleWrapper)
bundleWrapper - the object to add to the queue.JPPFQueue.addBundle(org.jppf.server.protocol.BundleWrapper)public BundleWrapper nextBundle(int nbTasks)
nbTasks - the maximum number of tasks to get out of the bundle.
JPPFQueue.nextBundle(int)
public BundleWrapper nextBundle(BundleWrapper bundleWrapper,
int nbTasks)
bundleWrapper - the bundle to either remove or extract a sub-bundle from.nbTasks - the maximum number of tasks to get out of the bundle.
JPPFQueue.nextBundle(org.jppf.server.protocol.BundleWrapper, int)public boolean isEmpty()
JPPFQueue.isEmpty()public int getMaxBundleSize()
JPPFQueue.getMaxBundleSize()public BundleWrapper removeBundle(BundleWrapper bundleWrapper)
bundleWrapper - the bundle to remove.
public Iterator<BundleWrapper> iterator()
Iterable.iterator()public void clearSchedules(String jobUuid)
jobUuid - the job uuid.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||