Package com.netscape.cmscore.util
Class StatsSubsystem
java.lang.Object
com.netscape.certsrv.base.Subsystem
com.netscape.cmscore.util.StatsSubsystem
A class represents a internal subsystem. This subsystem
can be loaded into cert server kernel to perform
statistics collection.
- Author:
- thomask
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Stops timing of a operation.Returns the configuration store.getId()
Retrieves subsystem identifier.Resets all internal counters.Retrieves the start time since startup or clearing of statistics.void
init
(ConfigStore config) Initializes this subsystem with the given configuration store.void
Resets counters.void
Sets the identifier of this subsystem.void
shutdown()
Stops this system.void
startTiming
(String id) Starts timing of a operation.void
startTiming
(String id, boolean mainAction) void
startup()
Notifies this subsystem if owner is in running mode.Methods inherited from class com.netscape.certsrv.base.Subsystem
getCMSEngine, setCMSEngine
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
StatsSubsystem
public StatsSubsystem()Constructs a certificate server.
-
-
Method Details
-
getId
Retrieves subsystem identifier. -
setId
Description copied from class:Subsystem
Sets the identifier of this subsystem.- Overrides:
setId
in classSubsystem
- Parameters:
id
- subsystem identifier- Throws:
EBaseException
- failed to set id
-
init
Initializes this subsystem with the given configuration store. It first initializes resident subsystems, and it loads and initializes loadable subsystem specified in the configuration store. Note that individual subsystem should be initialized in a separated thread if it has dependency on the initialization of other subsystems. -
getStartTime
Retrieves the start time since startup or clearing of statistics. -
startTiming
Starts timing of a operation. -
startTiming
-
endTiming
Stops timing of a operation. -
resetCounters
public void resetCounters()Resets counters. -
getMainStatsEvent
Resets all internal counters. -
startup
Description copied from class:Subsystem
Notifies this subsystem if owner is in running mode.- Overrides:
startup
in classSubsystem
- Throws:
EBaseException
- failed to start up
-
shutdown
public void shutdown()Stops this system. -
getConfigStore
Description copied from class:Subsystem
Returns the configuration store.- Overrides:
getConfigStore
in classSubsystem
- Returns:
- configuration store
-