public class DataBuffer extends Object
Constructor and Description |
---|
DataBuffer(List<String> attributes)
Creates an empty buffer with an initial list of attributes to watch for.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAttributes()
Get the list of all attributes noticed during recording.
|
void |
record(Measurement measurement)
Records the measurement and notices which attributes were present.
|
void |
replay(Consumer<Measurement> consumer)
Replays the stored measurements to the given consumer.
|
void |
replay(Consumer<Measurement> consumer,
boolean fillNulls)
Replays the stored measurements to the given consumer.
|
public void record(Measurement measurement)
C3ChartHelper
.measurement
- The measurement to be recorded.public void replay(Consumer<Measurement> consumer, boolean fillNulls)
consumer
- Consumer of the records. The records are replayed in the original order.fillNulls
- If true, the missing attributes will be added and their value set to null.public void replay(Consumer<Measurement> consumer)
consumer
- Consumer of the records. The records are replayed in the original order.Copyright © 2010–2017 PerfCake Community. All rights reserved.