|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.execution.engine.queue.PlanQueueElement
public class PlanQueueElement
A queue element used to store a plan before it is executed. Plans are evaluated for requested resources and if not qualified to start executing they miss their turn and following plans are evaluated. Every queue element has a threshold of required utilization percentage and the number of allowed times it can miss turn.
| Constructor Summary | |
|---|---|
PlanQueueElement(float util,
int ttl,
gr.uoa.di.madgik.execution.engine.ExecutionHandle handle)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
canGetDecreaseTtl()
Decrease ttl value by one if it is positive |
boolean |
decreaseTtl()
Decrease ttl value by one if it is positive |
gr.uoa.di.madgik.execution.engine.ExecutionHandle |
getHandle()
|
int |
getTtl()
|
float |
getUtil()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlanQueueElement(float util,
int ttl,
gr.uoa.di.madgik.execution.engine.ExecutionHandle handle)
util - Number of maximum concurrent execution jobsttl - Maximum number of missed turnshandle - Handler of execution plan| Method Detail |
|---|
public float getUtil()
public int getTtl()
public boolean decreaseTtl()
public boolean canGetDecreaseTtl()
public gr.uoa.di.madgik.execution.engine.ExecutionHandle getHandle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||