|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.execution.engine.QueueableExecutionEngine
public class QueueableExecutionEngine
This class is a decorator of ExecutionEngine class with the deviation
that the execution tasks are queued until desired requirements are met. When
a new plan is called to be executed, it is then added up to a queue. The
queued plans are investigated either the threshold of the concurrent
executions per node are met, otherwise the plan is overtaken until a maximum
of times.
| Constructor Summary | |
|---|---|
QueueableExecutionEngine()
|
|
| Method Summary | |
|---|---|
static void |
Destroy()
Terminates monitoring |
static void |
Execute(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
Start the execution of the plan that is described by the provided ExecutionHandle. |
static gr.uoa.di.madgik.execution.engine.EngineStatus |
GetEngineStatus()
Retrieves the status of the engine in this node |
static void |
Init(gr.uoa.di.madgik.execution.engine.ExecutionEngineConfig Config,
String resourceID)
Initializes the single instance of the engine; |
protected static void |
RemoveExecutor(gr.uoa.di.madgik.execution.engine.PlanExecutor executor)
Removes the executor. |
static gr.uoa.di.madgik.execution.engine.ExecutionHandle |
Submit(gr.uoa.di.madgik.execution.plan.ExecutionPlan plan)
Submit an execution plan to retrieve an ExecutionHandle |
static gr.uoa.di.madgik.execution.engine.ExecutionHandle |
Submit(gr.uoa.di.madgik.execution.plan.ExecutionPlan plan,
Float util,
Integer passedBy)
Submit an execution plan to retrieve an ExecutionHandle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueableExecutionEngine()
| Method Detail |
|---|
public static void Init(gr.uoa.di.madgik.execution.engine.ExecutionEngineConfig Config,
String resourceID)
public static gr.uoa.di.madgik.execution.engine.ExecutionHandle Submit(gr.uoa.di.madgik.execution.plan.ExecutionPlan plan)
throws gr.uoa.di.madgik.execution.exception.ExecutionEngineFullException,
gr.uoa.di.madgik.execution.exception.ExecutionValidationException,
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException
ExecutionHandle
plan - the plan
gr.uoa.di.madgik.execution.exception.ExecutionEngineFullException - the execution engine full
gr.uoa.di.madgik.execution.exception.ExecutionValidationException - A validation error occurred
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurred
public static gr.uoa.di.madgik.execution.engine.ExecutionHandle Submit(gr.uoa.di.madgik.execution.plan.ExecutionPlan plan,
Float util,
Integer passedBy)
throws gr.uoa.di.madgik.execution.exception.ExecutionEngineFullException,
gr.uoa.di.madgik.execution.exception.ExecutionValidationException,
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException
ExecutionHandle
plan - the planutil - the utilization factor. Leave null to keep plan's value.passedBy - the times a plan may be passed by. Leave null to keep plan's
value.
gr.uoa.di.madgik.execution.exception.ExecutionEngineFullException - the execution engine full
gr.uoa.di.madgik.execution.exception.ExecutionValidationException - A validation error occurred
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurred
public static void Execute(gr.uoa.di.madgik.execution.engine.ExecutionHandle Handle)
throws gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException
ExecutionHandle. The plan should be queued if desired
requirements are not met.
Handle - the handle
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurred
public static gr.uoa.di.madgik.execution.engine.EngineStatus GetEngineStatus()
throws gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException
gr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurredprotected static void RemoveExecutor(gr.uoa.di.madgik.execution.engine.PlanExecutor executor)
executor - the executorpublic static void Destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||