Package com.onenetwork.platform.ixm
Class BaseIXMEngineFactory
java.lang.Object
com.onenetwork.platform.ixm.BaseIXMEngineFactory
- All Implemented Interfaces:
IXMEngineFactory
public abstract class BaseIXMEngineFactory extends java.lang.Object implements IXMEngineFactory
Base class for implementing
IXMEngineFactory
.-
Constructor Summary
Constructors Constructor Description BaseIXMEngineFactory()
-
Method Summary
Modifier and Type Method Description IXMEngineJmxService
createEngineService()
Returns a newIXMEngineJmxService
which can be registered with JMX as an MBean for administrative purposes.TaskWriter
createTaskWriter()
The default implementation of createTaskWriter returns an adapter which will use theIXMEngineTaskGenerator
produced by this factory to write GRID_TASKS/GRID_JOB rows to the database.java.lang.String
getConfigName()
Returns the unique name for this particular configuration 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
setModulePrefix(java.lang.String modulePrefix)
Sets the prefix of the parent Module of this engineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.onenetwork.platform.ixm.IXMEngineFactory
createEngine, createIXMPlanParameters, createIXMPlanResult, createJSONObject, createTaskGenerator, createTaskWorker, getEngineName, setEngineName
-
Constructor Details
-
BaseIXMEngineFactory
public BaseIXMEngineFactory()
-
-
Method Details
-
getModulePrefix
public java.lang.String getModulePrefix()Description copied from interface:IXMEngineFactory
Returns the prefix of the parent Module of this engine- Specified by:
getModulePrefix
in interfaceIXMEngineFactory
- Returns:
- prefix of the parent Module of this engine
-
setModulePrefix
public void setModulePrefix(java.lang.String modulePrefix)Description copied from interface:IXMEngineFactory
Sets the prefix of the parent Module of this engine- Specified by:
setModulePrefix
in interfaceIXMEngineFactory
-
getConfigName
public java.lang.String getConfigName()Description copied from interface:IXMEngineFactory
Returns the unique name for this particular configuration of the engine- Specified by:
getConfigName
in interfaceIXMEngineFactory
- Returns:
- the unique name for this particular configuration of the engine
-
setConfigName
public void setConfigName(java.lang.String configName)Description copied from interface:IXMEngineFactory
Sets the unique name for this particular configuration of the engine- Specified by:
setConfigName
in interfaceIXMEngineFactory
-
createEngineService
Description copied from interface:IXMEngineFactory
Returns a newIXMEngineJmxService
which can be registered with JMX as an MBean for administrative purposes.- Specified by:
createEngineService
in interfaceIXMEngineFactory
- Throws:
java.lang.Exception
-
createTaskWriter
The default implementation of createTaskWriter returns an adapter which will use theIXMEngineTaskGenerator
produced by this factory to write GRID_TASKS/GRID_JOB rows to the database. When you want to customize this (for example in scenarios where the number of tasks to be created is large), you should override this method and provide a custom implementation.- Specified by:
createTaskWriter
in interfaceIXMEngineFactory
-