Package patterntesting.runtime.monitor
Class SimpleProfileMonitorFactory
- java.lang.Object
-
- patterntesting.runtime.monitor.ProfileMonitorFactory
-
- patterntesting.runtime.monitor.SimpleProfileMonitorFactory
-
public final class SimpleProfileMonitorFactory extends ProfileMonitorFactory
This is the counterpart to JamonMonitorFactory. It encapsulate the different behaviour of theSimpleProfileMonitor
for the ProfileStatistic class.- Since:
- 1.6 (19.12.2015)
- Author:
- oboehm (ob@aosd.de)
-
-
Field Summary
-
Fields inherited from class patterntesting.runtime.monitor.ProfileMonitorFactory
rootMonitor
-
-
Constructor Summary
Constructors Constructor Description SimpleProfileMonitorFactory(SimpleProfileMonitor rootMonitor)
Instantiates a new jamon monitor factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMonitors(java.util.List<java.lang.String> labels)
Adds the monitors.int
getMaxNumMonitors()
Gets the max num monitors.ProfileMonitor
getMonitor(java.lang.String label)
Gets the monitor.ProfileMonitor[]
getMonitors()
Gets the monitors.void
reset()
Reset.void
setMaxNumMonitors(int size)
Here you can set the maximal number of monitors.-
Methods inherited from class patterntesting.runtime.monitor.ProfileMonitorFactory
addMonitor, getRootMonitor, toString
-
-
-
-
Constructor Detail
-
SimpleProfileMonitorFactory
public SimpleProfileMonitorFactory(SimpleProfileMonitor rootMonitor)
Instantiates a new jamon monitor factory.- Parameters:
rootMonitor
- the root monitor
-
-
Method Detail
-
getMonitors
public ProfileMonitor[] getMonitors()
Gets the monitors.- Specified by:
getMonitors
in classProfileMonitorFactory
- Returns:
- the monitors
-
getMonitor
public ProfileMonitor getMonitor(java.lang.String label)
Gets the monitor.- Specified by:
getMonitor
in classProfileMonitorFactory
- Parameters:
label
- the label- Returns:
- the monitor
- See Also:
ProfileMonitorFactory.getMonitor(String)
-
getMaxNumMonitors
public int getMaxNumMonitors()
Gets the max num monitors.- Specified by:
getMaxNumMonitors
in classProfileMonitorFactory
- Returns:
- the max num monitors
- See Also:
ProfileMonitorFactory.getMaxNumMonitors()
-
setMaxNumMonitors
public void setMaxNumMonitors(int size)
Here you can set the maximal number of monitors.- Specified by:
setMaxNumMonitors
in classProfileMonitorFactory
- Parameters:
size
- the new max size- Since:
- 1.6
-
reset
public void reset()
Reset.- Specified by:
reset
in classProfileMonitorFactory
- See Also:
ProfileMonitorFactory.reset()
-
addMonitors
public void addMonitors(java.util.List<java.lang.String> labels)
Adds the monitors.- Specified by:
addMonitors
in classProfileMonitorFactory
- Parameters:
labels
- the labels- See Also:
ProfileMonitorFactory.addMonitors(java.util.List)
-
-