Package org.opencms.db.timing
Class CmsDefaultProfilingHandler
java.lang.Object
org.opencms.db.timing.CmsDefaultProfilingHandler
- All Implemented Interfaces:
I_CmsProfilingHandler
Default profiling handler which only has a single instance and delegates method calls to its
registered child handlers.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(I_CmsProfilingHandler handler) Adds a handler.void
Adds measured method call duration.void
removeHandler
(I_CmsProfilingHandler handler) Removes a handler.
-
Field Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
CmsDefaultProfilingHandler
protected CmsDefaultProfilingHandler()Hidden default constructor.
-
-
Method Details
-
addHandler
Adds a handler.- Parameters:
handler
- the handler to add
-
putTime
Description copied from interface:I_CmsProfilingHandler
Adds measured method call duration.- Specified by:
putTime
in interfaceI_CmsProfilingHandler
- Parameters:
key
- a key identifying the methodnanos
- the nanoseconds measured- See Also:
-
removeHandler
Removes a handler.- Parameters:
handler
- the handler to remove
-