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
ConstructorsModifierConstructorDescriptionprotectedProfileMonitorFactory(SimpleProfileMonitor rootMonitor) Instantiates a new monitor factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMonitor(String label) Adds the monitor.abstract voidaddMonitors(List<String> labels) Adds the monitors.abstract intGets the max num monitors.abstract ProfileMonitorgetMonitor(String label) Gets the monitor.abstract ProfileMonitor[]Gets the monitors (unsorted).Gets the root monitor.abstract voidreset()Reset.abstract voidsetMaxNumMonitors(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
-