Package com.onenetwork.platform.ixm
Interface IXMEngineFactory
- All Known Implementing Classes:
BaseIXMEngineFactory
public interface IXMEngineFactory
Each IXM Engine implements this factory interface to create
objects required for plan execution.
-
Method Summary
Modifier and Type Method Description IXMEngine
createEngine()
Returns a new engine to run the planning algorithmIXMEngineJmxService
createEngineService()
Returns a newIXMEngineJmxService
which can be registered with JMX as an MBean for administrative purposes.IXMPlanParameters
createIXMPlanParameters(org.json.JSONObject params)
Returns an object which captures the parameters which are fed into an IXM engine for execution.IXMPlanResult
createIXMPlanResult()
Returns a new PlanResult object into which IXM engine plan results can be populatedorg.json.JSONObject
createJSONObject(IXMPlanResult result)
Converts a PlanResult into a JSONIXMEngineTaskGenerator
createTaskGenerator()
Returns a new task generator for creating all the tasks necessary for an engine run.IXMEngineTaskWorker
createTaskWorker()
Returns a newIXMEngineTaskWorker
for responding to failed engine runsTaskWriter
createTaskWriter()
Returns a newTaskWriter
for creating GridTasks/GridJobs in the database.java.lang.String
getConfigName()
Returns the unique name for this particular configuration of the enginejava.lang.String
getEngineName()
Returns the name of the enginejava.lang.String
getModulePrefix()
Returns the prefix of the parent Module of this enginevoid
setConfigName(java.lang.String configName)
Sets the unique name for this particular configuration of the enginevoid
setEngineName(java.lang.String engineName)
Sets the name of the Enginevoid
setModulePrefix(java.lang.String appName)
Sets the prefix of the parent Module of this engine
-
Method Details
-
createEngine
IXMEngine createEngine()Returns a new engine to run the planning algorithm -
createEngineService
Returns a newIXMEngineJmxService
which can be registered with JMX as an MBean for administrative purposes.- Throws:
java.lang.Exception
-
createIXMPlanParameters
Returns an object which captures the parameters which are fed into an IXM engine for execution.- Throws:
java.lang.Exception
-
createIXMPlanResult
IXMPlanResult createIXMPlanResult()Returns a new PlanResult object into which IXM engine plan results can be populated -
createTaskGenerator
IXMEngineTaskGenerator createTaskGenerator()Returns a new task generator for creating all the tasks necessary for an engine run. For high-volume task generation (thousands and more), usecreateTaskWriter()
. -
createTaskWriter
TaskWriter createTaskWriter()Returns a newTaskWriter
for creating GridTasks/GridJobs in the database. -
createTaskWorker
IXMEngineTaskWorker createTaskWorker()Returns a newIXMEngineTaskWorker
for responding to failed engine runs -
getEngineName
java.lang.String getEngineName()Returns the name of the engine -
setEngineName
void setEngineName(java.lang.String engineName)Sets the name of the Engine- Parameters:
engineName
- engine name
-
getModulePrefix
java.lang.String getModulePrefix()Returns the prefix of the parent Module of this engine- Returns:
- prefix of the parent Module of this engine
-
setModulePrefix
void setModulePrefix(java.lang.String appName)Sets the prefix of the parent Module of this engine- Parameters:
engineName
- prefix of the parent Module of this engine
-
getConfigName
java.lang.String getConfigName()Returns the unique name for this particular configuration of the engine- Returns:
- the unique name for this particular configuration of the engine
-
setConfigName
void setConfigName(java.lang.String configName)Sets the unique name for this particular configuration of the engine- Parameters:
engineName
- the unique name for this particular configuration of the engine
-
createJSONObject
Converts a PlanResult into a JSON- Parameters:
result
- PlanResult- Returns:
- representative JSON
- Throws:
java.lang.Exception
-