etm.core.monitor
Class NestedMonitor
java.lang.Object
etm.core.monitor.EtmMonitorSupport
etm.core.monitor.NestedMonitor
- All Implemented Interfaces:
- EtmMonitor, AggregationStateListener, EtmMonitorListener
public class NestedMonitor
- extends EtmMonitorSupport
The NestedMonitor records nested EtmPoints as a tree using ThreadLocals
to maintain the thread depend caller tree.
Be aware that leaking EtmPoints will lead to unexpected results - so
always ensure you call EtmPoint.collect() in a finally clause.
- Version:
- $Revision: 150 $
- Author:
- Jens Schumann
| Methods inherited from class etm.core.monitor.EtmMonitorSupport |
addPlugin, aggregate, createPoint, disableCollection, enableCollection, getDefaultAggregator, getMetaData, isCollecting, isStarted, onStateLoaded, render, reset, reset, setPlugins, shutdownPlugins, start, startPlugins, stop, visitPostCollect, visitPreMeasurement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NestedMonitor
public NestedMonitor()
NestedMonitor
public NestedMonitor(ExecutionTimer aTimer)
NestedMonitor
public NestedMonitor(Aggregator aAggregator)
NestedMonitor
public NestedMonitor(ExecutionTimer aTimer,
Aggregator aAggregator)
doVisitPreMeasurement
protected void doVisitPreMeasurement(MeasurementPoint measurementPoint)
- Description copied from class:
EtmMonitorSupport
-
Callback method for derived classes.
This method is called immediately after the measurement point was created. Note that
neither
MeasurementPoint.getTicks() nor MeasurementPoint.getStartTime() are set
at that point.
- Specified by:
doVisitPreMeasurement in class EtmMonitorSupport
- Parameters:
measurementPoint - The measurement point just created.
doVisitPostCollect
protected void doVisitPostCollect(MeasurementPoint aPoint)
- Description copied from class:
EtmMonitorSupport
-
Callback method for derived classes.
This method is called immediately after the measurement point was collected and marked as
closed. At that point the all required information are valid for that measurement point.
- Specified by:
doVisitPostCollect in class EtmMonitorSupport
- Parameters:
aPoint - The point to collect.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.