Package com.netscape.certsrv.base
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.void
init
(ConfigStore config) Initializes this subsystem with the given configuration store.void
setCMSEngine
(CMSEngine engine) void
Sets the identifier of this subsystem.void
shutdown()
Stops this system.void
startup()
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
Returns the configuration store.- Returns:
- configuration store
-
setId
Sets the identifier of this subsystem.- Parameters:
id
- subsystem identifier- Throws:
EBaseException
- failed to set id
-
getId
Retrieves the subsystem identifier.- Returns:
- subsystem identifier
-
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.
-