gr.uoa.di.madgik.execution.engine
Class ExecutionEngine

java.lang.Object
  extended by gr.uoa.di.madgik.execution.engine.ExecutionEngine

public class ExecutionEngine
extends Object

This class acts as a singleton instance of an ExecutionEngine through which plans are submitted, executed and managed.

Author:
gpapanikos

Field Summary
static String LOADTOPICNAME
          Execution engine load notification topic
static String PRODUCERID
          Execution engine topic producer ID
 
Method Summary
static void Execute(ExecutionHandle Handle)
          Start the execution of the plan that is described by the provided ExecutionHandle
static EngineStatus GetEngineStatus()
          Retrieves the status if the engine in this node
static String getLocalhost(gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)
           
static void Init(ExecutionEngineConfig Config)
          Initializes the single instance of the engine
protected static boolean isInitialized()
          Checks if execution engine is initialized
protected static void RemoveExecutor(PlanExecutor executor)
          Removes the executor.
static ExecutionHandle Submit(ExecutionPlan plan)
          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
 

Field Detail

PRODUCERID

public static final String PRODUCERID
Execution engine topic producer ID

See Also:
Constant Field Values

LOADTOPICNAME

public static final String LOADTOPICNAME
Execution engine load notification topic

See Also:
Constant Field Values
Method Detail

getLocalhost

public static String getLocalhost(gr.uoa.di.madgik.environment.hint.EnvHintCollection envHints)

Init

public static void Init(ExecutionEngineConfig Config)
Initializes the single instance of the engine

Parameters:
Config - the config

Submit

public static ExecutionHandle Submit(ExecutionPlan plan)
                              throws ExecutionEngineFullException,
                                     ExecutionValidationException,
                                     ExecutionInternalErrorException
Submit an execution plan to retrieve an ExecutionHandle

Parameters:
plan - the plan
Returns:
the execution handle
Throws:
ExecutionEngineFullException - the execution engine full
ExecutionValidationException - A validation error occurred
ExecutionInternalErrorException - An internal error occurred

Execute

public static void Execute(ExecutionHandle Handle)
                    throws ExecutionInternalErrorException
Start the execution of the plan that is described by the provided ExecutionHandle

Parameters:
Handle - the handle
Throws:
ExecutionInternalErrorException - An internal error occurred

GetEngineStatus

public static EngineStatus GetEngineStatus()
                                    throws ExecutionInternalErrorException
Retrieves the status if the engine in this node

Returns:
the engine status
Throws:
ExecutionInternalErrorException - An internal error occurred

RemoveExecutor

protected static void RemoveExecutor(PlanExecutor executor)
Removes the executor.

Parameters:
executor - the executor

isInitialized

protected static boolean isInitialized()
                                throws ExecutionInternalErrorException
Checks if execution engine is initialized

Returns:
true if execution engine is initialized, otherwise false
Throws:
ExecutionInternalErrorException


Copyright © 2012. All Rights Reserved.