Class Subsystem
java.lang.Object
com.netscape.certsrv.base.Subsystem
- Direct Known Subclasses:
AuthSubsystem, AuthzSubsystem, JobsScheduler, LogSubsystem, OidLoaderSubsystem, SelfTestSubsystem, StatsSubsystem, X500NameSubsystem
This class represents a basic subsystem. Each basic
subsystem is named with an identifier and has a
configuration store.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration store.getId()Retrieves the subsystem identifier.voidinit(ConfigStore config) Initializes this subsystem with the given configuration store.voidsetCMSEngine(CMSEngine engine) voidSets the identifier of this subsystem.voidshutdown()Stops this system.voidstartup()Notifies this subsystem if owner is in running mode.
-
Field Details
-
engine
-
config
-
id
-
-
Constructor Details
-
Subsystem
public Subsystem()
-
-
Method Details
-
getCMSEngine
-
setCMSEngine
-
init
Initializes this subsystem with the given configuration store.- Parameters:
config- Subsystem configuration- Throws:
Exception- Unable to initialize subsystem
-
getConfigStore
-
setId
Sets the identifier of this subsystem.- Parameters:
id- subsystem identifier- Throws:
EBaseException- failed to set id
-
getId
-
startup
Notifies this subsystem if owner is in running mode.- Throws:
EBaseException- failed to start up
-
shutdown
public void shutdown()Stops this system. The owner may call shutdown anytime after initialization.
-