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 TypeMethodDescriptionvoidStops 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.voidinit(ConfigStore config) Initializes this subsystem with the given configuration store.voidResets counters.voidSets the identifier of this subsystem.voidshutdown()Stops this system.voidstartTiming(String id) Starts timing of a operation.voidstartTiming(String id, boolean mainAction) voidstartup()Notifies this subsystem if owner is in running mode.Methods inherited from class Subsystem
getCMSEngine, setCMSEngine
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
StatsSubsystem
public StatsSubsystem()Constructs a certificate server.
-
-
Method Details
-
getId
-
setId
Description copied from class:SubsystemSets the identifier of this subsystem.- Overrides:
setIdin 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:SubsystemNotifies this subsystem if owner is in running mode.- Overrides:
startupin classSubsystem- Throws:
EBaseException- failed to start up
-
shutdown
-
getConfigStore
Description copied from class:SubsystemReturns the configuration store.- Overrides:
getConfigStorein classSubsystem- Returns:
- configuration store
-