Class ProfileMonitorFactory
java.lang.Object
clazzfish.jdbc.monitor.ProfileMonitorFactory
- Direct Known Subclasses:
JamonMonitorFactory
,SimpleProfileMonitorFactory
This factory abstracts the differences between the monitor based on JAMon and
the simple monitor provided by PatternTesting itself.
- Since:
- 1.6
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProfileMonitorFactory
(SimpleProfileMonitor rootMonitor) Instantiates a new monitor factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMonitor
(String label) Adds the monitor.abstract void
addMonitors
(List<String> labels) Adds the monitors.abstract int
Gets the max num monitors.abstract ProfileMonitor
getMonitor
(String label) Gets the monitor.abstract ProfileMonitor[]
Gets the monitors (unsorted).Gets the root monitor.abstract void
reset()
Reset.abstract void
setMaxNumMonitors
(int maxMonitors) Sets the max num monitors.toString()
To string.
-
Field Details
-
rootMonitor
The root monitor.
-
-
Constructor Details
-
ProfileMonitorFactory
Instantiates a new monitor factory.- Parameters:
rootMonitor
- the root monitor
-
-
Method Details
-
getRootMonitor
-
setMaxNumMonitors
public abstract void setMaxNumMonitors(int maxMonitors) Sets the max num monitors.- Parameters:
maxMonitors
- the new max num monitors
-
getMaxNumMonitors
public abstract int getMaxNumMonitors()Gets the max num monitors.- Returns:
- the max num monitors
-
addMonitors
-
addMonitor
-
getMonitor
Gets the monitor.- Parameters:
label
- the label or signature- Returns:
- the monitor
-
getMonitors
-
reset
public abstract void reset()Reset. -
toString
-