Class SimpleProfileMonitorFactory
java.lang.Object
clazzfish.jdbc.monitor.ProfileMonitorFactory
clazzfish.jdbc.monitor.SimpleProfileMonitorFactory
This is the counterpart to JamonMonitorFactory. It encapsulate the different
behaviour of the
SimpleProfileMonitor
for the AbstractStatistic class.- Since:
- 1.6 (19.12.2015)
- Author:
- oboehm (ob@aosd.de)
-
Field Summary
Fields inherited from class clazzfish.jdbc.monitor.ProfileMonitorFactory
rootMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleProfileMonitorFactory
(SimpleProfileMonitor rootMonitor) Instantiates a new jamon monitor factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMonitors
(List<String> labels) Adds the monitors.int
Gets the max num monitors.getMonitor
(String label) Gets the monitor.Gets the monitors.void
reset()
Reset.void
setMaxNumMonitors
(int size) Here you can set the maximal number of monitors.Methods inherited from class clazzfish.jdbc.monitor.ProfileMonitorFactory
addMonitor, getRootMonitor, toString
-
Constructor Details
-
SimpleProfileMonitorFactory
Instantiates a new jamon monitor factory.- Parameters:
rootMonitor
- the root monitor
-
-
Method Details
-
getMonitors
Gets the monitors.- Specified by:
getMonitors
in classProfileMonitorFactory
- Returns:
- the monitors
-
getMonitor
Gets the monitor.- Specified by:
getMonitor
in classProfileMonitorFactory
- Parameters:
label
- the label- Returns:
- the monitor
- See Also:
-
getMaxNumMonitors
public int getMaxNumMonitors()Gets the max num monitors.- Specified by:
getMaxNumMonitors
in classProfileMonitorFactory
- Returns:
- the max num monitors
- See Also:
-
setMaxNumMonitors
public void setMaxNumMonitors(int size) Here you can set the maximal number of monitors.- Specified by:
setMaxNumMonitors
in classProfileMonitorFactory
- Parameters:
size
- the new max size- Since:
- 1.6
-
reset
-
addMonitors
Adds the monitors.- Specified by:
addMonitors
in classProfileMonitorFactory
- Parameters:
labels
- the labels- See Also:
-