public class QueueableExecutionEngine extends Object
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 and Description |
|---|
QueueableExecutionEngine() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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
ExecutionHandleplan - the plangr.uoa.di.madgik.execution.exception.ExecutionEngineFullException - the execution engine fullgr.uoa.di.madgik.execution.exception.ExecutionValidationException - A validation error occurredgr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurredpublic 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
ExecutionHandleplan - 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 fullgr.uoa.di.madgik.execution.exception.ExecutionValidationException - A validation error occurredgr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurredpublic 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 handlegr.uoa.di.madgik.execution.exception.ExecutionInternalErrorException - An internal error occurredpublic 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()
Copyright © 2017. All Rights Reserved.