|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectseda.sandStorm.internal.sandStormMgr
This class provides management functionality for the Sandstorm runtime system. It is responsible for initializing the system, creating and registering stages and thread managers, and other administrative functions. Stages and thread managers can interact with this class through the ManagerIF and SystemManagerIF interfaces; this class should not be used directly.
ManagerIF
,
SystemManagerIF
Field Summary |
Fields inherited from interface seda.sandStorm.api.ManagerIF |
MAINSINK |
Fields inherited from interface seda.sandStorm.internal.sandStormConst |
MAJOR_VERSION, MINOR_VERSION, VERSION_STRING, WELCOME_STRING |
Constructor Summary | |
sandStormMgr(SandstormConfig mgrconfig)
Create a sandStormMgr which reads its configuration from the given file. |
Method Summary | |
void |
addThreadManager(java.lang.String name,
ThreadManagerIF tm)
Add a thread manager with the given name. |
StageIF |
createStage(StageWrapperIF wrapper,
boolean initialize)
Create a stage from the given stage wrapper. |
StageIF |
createStage(java.lang.String stageName,
EventHandlerIF evHandler,
java.lang.String[] initargs)
Create a stage with the given name from the given event handler with the given initial arguments. |
SandstormConfig |
getConfig()
Return the SandstormConfig used to initialize this manager. |
ProfilerIF |
getProfiler()
Return the system profiler. |
SignalMgrIF |
getSignalMgr()
Return the system signal manager. |
StageIF |
getStage(java.lang.String stagename)
Return a handle to given stage. |
ThreadManagerIF |
getThreadManager()
Return the default thread manager. |
ThreadManagerIF |
getThreadManager(java.lang.String name)
Return the thread manager with the given name. |
void |
start()
Start the manager. |
void |
stop()
Stop the manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public sandStormMgr(SandstormConfig mgrconfig) throws java.lang.Exception
Method Detail |
public void start()
public void stop()
public StageIF getStage(java.lang.String stagename) throws NoSuchStageException
getStage
in interface ManagerIF
NoSuchStageException
- Thrown if the stage does not exist.public ThreadManagerIF getThreadManager()
getThreadManager
in interface SystemManagerIF
public ThreadManagerIF getThreadManager(java.lang.String name)
getThreadManager
in interface SystemManagerIF
public void addThreadManager(java.lang.String name, ThreadManagerIF tm)
addThreadManager
in interface SystemManagerIF
public StageIF createStage(java.lang.String stageName, EventHandlerIF evHandler, java.lang.String[] initargs) throws java.lang.Exception
createStage
in interface ManagerIF
stageName
- The name under which the new stage should be registered.evHandler
- The event handler object which should be associated
with the new stage.initargs
- The initial arguments to the stage, to be passed to
the new stage through a ConfigDataIF.
java.lang.Exception
- If an exception occurred during stage
creation or initialization.SystemManagerIF
,
ConfigDataIF
public StageIF createStage(StageWrapperIF wrapper, boolean initialize) throws java.lang.Exception
createStage
in interface SystemManagerIF
java.lang.Exception
public ProfilerIF getProfiler()
getProfiler
in interface ManagerIF
public SignalMgrIF getSignalMgr()
getSignalMgr
in interface ManagerIF
public SandstormConfig getConfig()
getConfig
in interface ManagerIF
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |