Class cornell.slk.jos.manager.SubsystemManager
java.lang.Object
|
+----cornell.slk.jos.manager.SubsystemManager
- public class SubsystemManager
- extends java.lang.Object
- implements ISubsystemManager
SubsystemManager is reponsible for loading and unloading subsystems tasks.
It maintains two kinds of subsystems: the standard ones, which are loaded at JOS
initialization, and the non-standard ones, loaded through HTTP using the SubsystemLoader
servlet.
|
Method Summary
|
|
void
|
loadStandardSubsystems(java.lang.String configFile,
java.lang.String binPath,
java.util.Hashtable commandLineArgs)
loadStandardSubsystems takes a configuration file, loads all the subsystems
listed in the configuration file, and puts them in the standard tables.
|
|
Subsystem
|
loadSubsystem(SubsystemInfo si)
loadSubsystem launches a new subsystem task.
|
|
static void
|
main(java.lang.String[] args)
|
|
SubsystemInfo
|
readConfigFile(java.lang.String configFile)
readConfigFile reads the properties of a subsystem from a configuration file
into a SubsystemInfo data structure.
|
|
void
|
unloadStandardSubsystems()
unloadStandardSubsystems unloads all the subsystems according to the
stopStandardSubsystemsVector.
|
|
void
|
unloadSubsystem(Subsystem s)
unloadSubsystem terminates the subsystem task.
|
| Methods inherited from class java.lang.Object
|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubsystemManager
public SubsystemManager()
loadStandardSubsystems
public void loadStandardSubsystems(java.lang.String configFile,
java.lang.String binPath,
java.util.Hashtable commandLineArgs) throws SubsystemException
- loadStandardSubsystems takes a configuration file, loads all the subsystems
listed in the configuration file, and puts them in the standard tables.
The key/value pairs in commandLineArgs is appended to the parameter hashtables
of *every* subsystem.
unloadStandardSubsystems
public void unloadStandardSubsystems()
- unloadStandardSubsystems unloads all the subsystems according to the
stopStandardSubsystemsVector.
readConfigFile
public SubsystemInfo readConfigFile(java.lang.String configFile) throws SubsystemException
- readConfigFile reads the properties of a subsystem from a configuration file
into a SubsystemInfo data structure.
- Implements:
- readConfigFile in interface ISubsystemManager
loadSubsystem
public Subsystem loadSubsystem(SubsystemInfo si) throws SubsystemException
- loadSubsystem launches a new subsystem task.
- Implements:
- loadSubsystem in interface ISubsystemManager
unloadSubsystem
public void unloadSubsystem(Subsystem s) throws SubsystemException
- unloadSubsystem terminates the subsystem task.
- Implements:
- unloadSubsystem in interface ISubsystemManager
main
public static void main(java.lang.String[] args)