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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(I_CmsProfilingHandler handler) Adds a handler.voidAdds measured method call duration.voidremoveHandler(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_CmsProfilingHandlerAdds measured method call duration.- Specified by:
putTimein interfaceI_CmsProfilingHandler- Parameters:
key- a key identifying the methodnanos- the nanoseconds measured- See Also:
-
removeHandler
Removes a handler.- Parameters:
handler- the handler to remove
-