|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectetm.core.aggregation.BufferedTimedAggregator
public class BufferedTimedAggregator
The BufferedTimedAggregator buffers measurement results for a certain period of time. The default interval is 5000 miliseconds.
| Field Summary | |
|---|---|
protected etm.core.aggregation.BufferedTimedAggregator.UnboundedBuffer |
buffer
|
protected Aggregator |
delegate
|
| Constructor Summary | |
|---|---|
BufferedTimedAggregator(Aggregator aAggregator)
Creates a BufferedTimedAggregator with default sleep interval (5000ms). |
|
| 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 aCtx)
Initializes current monitor . |
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 |
setAggregationInterval(long aAggregationInterval)
Sets a custom sleep interval. |
void |
setInitialBufferSize(int aInitialBufferSize)
Sets the initial buffer size that will be used at startup. |
void |
start()
Starts the internal aggregation timer. |
void |
stop()
Stops the internal aggregation timer. |
| 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 etm.core.aggregation.BufferedTimedAggregator.UnboundedBuffer buffer
| Constructor Detail |
|---|
public BufferedTimedAggregator(Aggregator aAggregator)
aAggregator - The nested aggregator.| Method Detail |
|---|
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 void init(EtmMonitorContext aCtx)
init in interface AggregatoraCtx - The runtime context.public void start()
start in interface Aggregatorpublic void stop()
stop in interface Aggregatorpublic AggregatorMetaData getMetaData()
Aggregator
getMetaData in interface Aggregatorpublic void setAggregationInterval(long aAggregationInterval)
aAggregationInterval - The custom sleep interval in miliseconds.
java.lang.IllegalArgumentException - Thrown for sleep interval < 10mspublic void setInitialBufferSize(int aInitialBufferSize)
aInitialBufferSize - A new inital buffer size.
java.lang.IllegalArgumentException - Thrown for buffer sizes < 1000
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||