public final class DirectStoreAccumulator extends Object implements CloseableMeasurementRecorder
Modifier and Type | Class and Description |
---|---|
static class |
DirectStoreAccumulator.RecordedValue |
Constructor and Description |
---|
DirectStoreAccumulator(Object measuredEntity,
String description,
String unitOfMeasurement,
int sampleTimeMillis,
MeasurementStore measurementStore) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getInfo() |
DirectStoreAccumulator.RecordedValue |
getLastRecorded() |
String |
getUnitOfMeasurement() |
void |
record(long measurement)
record a measurement for current time.
|
void |
recordAt(long timestampMillis,
long measurement) |
void |
registerJmx() |
String |
toString() |
public DirectStoreAccumulator(Object measuredEntity, String description, String unitOfMeasurement, int sampleTimeMillis, MeasurementStore measurementStore)
public String getUnitOfMeasurement()
public void record(long measurement)
MeasurementRecorder
record
in interface MeasurementRecorder
measurement
- the measurement valuepublic void recordAt(long timestampMillis, long measurement)
recordAt
in interface MeasurementRecorder
public void registerJmx()
public void close()
close
in interface AutoCloseable
close
in interface CloseableMeasurementRecorder
public DirectStoreAccumulator.RecordedValue getLastRecorded()
public String getInfo()
Copyright © 2018 SPF4J. All rights reserved.