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 TypeMethodDescriptionvoid
addMonitors
(List<String> labels) Adds the monitors.int
Gets the max num monitors.static int
getMaxNumMonitors
(ProfileMonitor rootMonitor) Gets the max num monintors.getMonitor
(String label) Gets the monitor.static ProfileMonitor
getMonitor
(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.void
reset()
Reset.static void
reset
(ProfileMonitor rootMonitor) Reset.static void
Reset.void
setMaxNumMonitors
(int maxMonitors) Sets the max num monitors.static void
setMaxNumMonitors
(int maxMonitors, ProfileMonitor rootMonitor) Sets the max num monitors.static ProfileMonitor
start
(String label, ProfileMonitor root) Start.static ProfileMonitor
Start.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:
setMaxNumMonitors
in 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:
getMaxNumMonitors
in 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:
addMonitors
in classProfileMonitorFactory
- Parameters:
labels
- the labels- See Also:
-
getMonitor
Gets the monitor.- Specified by:
getMonitor
in 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:
getMonitors
in 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
-