|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectetm.core.aggregation.BufferedThresholdAggregator
public class BufferedThresholdAggregator
The BufferedThresholdAggregator wraps an Aggregator instance and prevents processing of every measurement result by buffering them until specified threshold is reached. If this threshold is reached all buffered measurements will be flushed to the underlying aggregator. Please note that this aggregator may have a direct impact on executing threads since the thread that reaches the threshold is used to aggregate the results. If you want to minimize this effect use an interval based buffering aggregator
BufferedTimedAggregator.
| Field Summary | |
|---|---|
protected etm.core.aggregation.BufferedThresholdAggregator.BoundedBuffer |
buffer
|
protected Aggregator |
delegate
|
protected int |
threshold
|
| Constructor Summary | |
|---|---|
BufferedThresholdAggregator(Aggregator aAggregator)
Creates a new BufferedThresholdAggregator for the given aggregator instance. |
|
| 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 Aggregator.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 |
setThreshold(int aThreshold)
Sets the threshold to the given value. |
void |
start()
Lifecycle method, will be called after all Aggregator instances are initialized by calling Aggregator.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Aggregator delegate
protected int threshold
protected etm.core.aggregation.BufferedThresholdAggregator.BoundedBuffer buffer
| Constructor Detail |
|---|
public BufferedThresholdAggregator(Aggregator aAggregator)
aAggregator - The underlying aggregator.| Method Detail |
|---|
public void setThreshold(int aThreshold)
aThreshold - The threshold.
java.lang.IllegalArgumentException - Thrown for threshold sizes < 1000.public void add(EtmPoint point)
Aggregator
add in interface Aggregatorpoint - A new collected EtmPoint.public void flush()
Aggregator
flush in interface Aggregatorpublic void reset()
Aggregator
reset in interface Aggregatorpublic void reset(java.lang.String symbolicName)
Aggregator
reset in interface AggregatorsymbolicName - The name of the etm point to be resetted.public void render(MeasurementRenderer renderer)
Aggregator
render in interface Aggregatorrenderer - The renderer.public AggregatorMetaData getMetaData()
Aggregator
getMetaData in interface Aggregatorpublic void init(EtmMonitorContext ctx)
AggregatorAggregator.start(), after initalization of
the current EtmMonitor runtime. Be aware that Plugins are instantiated, but not
started at this point.
init in interface Aggregatorctx - The current EtmMonitor Context.public void start()
AggregatorAggregator.init(etm.core.monitor.EtmMonitorContext) and before the
EtmMonitor instance will becomes available.
start in interface Aggregatorpublic void stop()
Aggregator
stop in interface Aggregator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||