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 TypeMethodDescriptionvoidaddMonitors(List<String> labels) Adds the monitors.intGets the max num monitors.getMonitor(String label) Gets the monitor.Gets the monitors.voidreset()Reset.voidsetMaxNumMonitors(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:
getMonitorsin classProfileMonitorFactory- Returns:
- the monitors
-
getMonitor
Gets the monitor.- Specified by:
getMonitorin classProfileMonitorFactory- Parameters:
label- the label- Returns:
- the monitor
- See Also:
-
getMaxNumMonitors
public int getMaxNumMonitors()Gets the max num monitors.- Specified by:
getMaxNumMonitorsin 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:
setMaxNumMonitorsin classProfileMonitorFactory- Parameters:
size- the new max size- Since:
- 1.6
-
reset
-
addMonitors
Adds the monitors.- Specified by:
addMonitorsin classProfileMonitorFactory- Parameters:
labels- the labels- See Also:
-