|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectseda.sandStorm.internal.sandStormMgr
public class 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 | |
|---|---|
private ThreadManagerIF |
defaulttm
|
private SandstormConfig |
mgrconfig
|
private sandStormProfiler |
profiler
|
private SignalMgr |
signalMgr
|
private java.util.Vector |
stagestoinit
|
private java.util.Hashtable |
stagetbl
|
private boolean |
started
|
private java.util.Hashtable |
tmtbl
|
| 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. |
private void |
destroyStages()
|
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. |
private void |
initialize_io()
|
private void |
initStages()
|
private void |
loadInitialStages()
|
private void |
loadStage(stageDescr descr)
|
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 |
| Field Detail |
|---|
private ThreadManagerIF defaulttm
private java.util.Hashtable tmtbl
private SandstormConfig mgrconfig
private java.util.Hashtable stagetbl
private java.util.Vector stagestoinit
private boolean started
private sandStormProfiler profiler
private SignalMgr signalMgr
| Constructor Detail |
|---|
public sandStormMgr(SandstormConfig mgrconfig)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void start()
public void stop()
public StageIF getStage(java.lang.String stagename)
throws NoSuchStageException
getStage in interface ManagerIFNoSuchStageException - Thrown if the stage does not exist.
private void initialize_io()
throws java.lang.Exception
java.lang.Exception
private void loadInitialStages()
throws java.lang.Exception
java.lang.Exceptionpublic ThreadManagerIF getThreadManager()
getThreadManager in interface SystemManagerIFpublic ThreadManagerIF getThreadManager(java.lang.String name)
getThreadManager in interface SystemManagerIF
public void addThreadManager(java.lang.String name,
ThreadManagerIF tm)
addThreadManager in interface SystemManagerIF
private void loadStage(stageDescr descr)
throws java.lang.Exception
java.lang.Exception
public StageIF createStage(java.lang.String stageName,
EventHandlerIF evHandler,
java.lang.String[] initargs)
throws java.lang.Exception
createStage in interface ManagerIFstageName - 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 SystemManagerIFjava.lang.Exceptionpublic ProfilerIF getProfiler()
getProfiler in interface ManagerIFpublic SignalMgrIF getSignalMgr()
getSignalMgr in interface ManagerIFpublic SandstormConfig getConfig()
getConfig in interface ManagerIFprivate void initStages()
private void destroyStages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||