|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Aggregator
An EtmMonitor uses a instance of Aggregator to collect and aggregate measurement results. In order to provide multiple aggregation and collection features at the same time aggregator instance may wrap other aggregators.
Usually there is no need to synchronize shared ressources within a aggregator instance unless the aggregator uses internal threads which also access the data structures used within the aggregator methods. SeeEtmMonitor for further synchronization details.
Custom Aggregator implementations need to provide an empty default constructor
or a constructor taking an Aggregator instance as argument. Be aware that
the last aggregator in an aggregator chains needs to have an default empty
constructor, every other aggregator needs to provide an constructor taking the
aggregator argument.
| Method Summary | |
|---|---|
void |
add(EtmPoint point)
Adds a new EtmPoint to the aggregator. |
void |
flush()
Flushes the current aggregation details. |
AggregatorMetaData |
getMetaData()
Returns detailed information about the aggregator chain. |
void |
init(EtmMonitorContext ctx)
Lifecycle Method, will be called before start(), after initalization of
the current EtmMonitor runtime. |
void |
render(MeasurementRenderer renderer)
Renders the current state of the aggregator using the provided renderer instance. |
void |
reset()
Resets the internal aggregator state. |
void |
reset(java.lang.String symbolicName)
Resets the internal aggregator state for a etm point. |
void |
start()
Lifecycle method, will be called after all Aggregator instances are initialized by calling init(etm.core.monitor.EtmMonitorContext) and before the
EtmMonitor instance will becomes available. |
void |
stop()
Lifecycle method, will be called after the EtmMonitor instance was shutdown. |
| Method Detail |
|---|
void add(EtmPoint point)
point - A new collected EtmPoint.void flush()
void reset()
void reset(java.lang.String symbolicName)
symbolicName - The name of the etm point to be resetted.void render(MeasurementRenderer renderer)
renderer - The renderer.AggregatorMetaData getMetaData()
void init(EtmMonitorContext ctx)
start(), after initalization of
the current EtmMonitor runtime. Be aware that Plugins are instantiated, but not
started at this point.
ctx - The current EtmMonitor Context.void start()
init(etm.core.monitor.EtmMonitorContext) and before the
EtmMonitor instance will becomes available.
void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||