Class JamonMonitorFactory
java.lang.Object
clazzfish.jdbc.monitor.ProfileMonitorFactory
clazzfish.jdbc.monitor.JamonMonitorFactory
This is a thin wrapper around com.jamonapi.MonitorFactory to keep the
AbstractStatistic class clean from com.jamonapi dependencies.
- Since:
- 27.12.2008
- Version:
- $Revision: 1.20 $
- Author:
- oliver
-
Field Summary
Fields inherited from class clazzfish.jdbc.monitor.ProfileMonitorFactory
rootMonitor -
Constructor Summary
ConstructorsConstructorDescriptionJamonMonitorFactory(SimpleProfileMonitor rootMonitor) Instantiates a new jamon monitor factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMonitors(List<String> labels) Adds the monitors.intGets the max num monitors.static intgetMaxNumMonitors(ProfileMonitor rootMonitor) Gets the max num monintors.getMonitor(String label) Gets the monitor.static ProfileMonitorgetMonitor(String label, ProfileMonitor root) Gets the monitor.Gets the monitors.static ProfileMonitor[]getMonitors(ProfileMonitor root) Gets the monitors.static ProfileMonitor[]getMonitors(String rootLabel) Gets the monitors.voidreset()Reset.static voidreset(ProfileMonitor rootMonitor) Reset.static voidReset.voidsetMaxNumMonitors(int maxMonitors) Sets the max num monitors.static voidsetMaxNumMonitors(int maxMonitors, ProfileMonitor rootMonitor) Sets the max num monitors.static ProfileMonitorstart(String label, ProfileMonitor root) Start.static ProfileMonitorStart.Methods inherited from class clazzfish.jdbc.monitor.ProfileMonitorFactory
addMonitor, getRootMonitor, toString
-
Constructor Details
-
JamonMonitorFactory
Instantiates a new jamon monitor factory.- Parameters:
rootMonitor- the root monitor
-
-
Method Details
-
setMaxNumMonitors
public void setMaxNumMonitors(int maxMonitors) Sets the max num monitors.- Specified by:
setMaxNumMonitorsin classProfileMonitorFactory- Parameters:
maxMonitors- the new max num monitors
-
setMaxNumMonitors
Sets the max num monitors.- Parameters:
maxMonitors- the max monitorsrootMonitor- the root monitor- Since:
- 1.6
-
getMaxNumMonitors
public int getMaxNumMonitors()Gets the max num monitors.- Specified by:
getMaxNumMonitorsin classProfileMonitorFactory- Returns:
- the max num monitors
- See Also:
-
getMaxNumMonitors
Gets the max num monintors.- Parameters:
rootMonitor- the root monitor- Returns:
- the max num monintors
-
reset
-
reset
Reset.- Parameters:
rootMonitor- the root monitor- Since:
- 1.4.2
-
reset
Reset.- Parameters:
rootLabel- the root label- Since:
- 1.4.2
-
start
Start.- Parameters:
label- the labelroot- the root- Returns:
- the profile monitor
-
start
Start.- Parameters:
label- the labelrootLabel- the root label- Returns:
- the profile monitor
-
addMonitors
Adds the monitors.- Specified by:
addMonitorsin classProfileMonitorFactory- Parameters:
labels- the labels- See Also:
-
getMonitor
Gets the monitor.- Specified by:
getMonitorin classProfileMonitorFactory- Parameters:
label- the label- Returns:
- the monitor
- See Also:
-
getMonitor
Gets the monitor.- Parameters:
label- the labelroot- the root monitor- Returns:
- the monitor
- Since:
- 1.4.2
-
getMonitors
Gets the monitors.- Specified by:
getMonitorsin classProfileMonitorFactory- Returns:
- the monitors
-
getMonitors
Gets the monitors.- Parameters:
root- the root- Returns:
- the monitors
- Since:
- 1.4.2
-
getMonitors
Gets the monitors.- Parameters:
rootLabel- the root label- Returns:
- the monitors
- Since:
- 1.4.2
-