public interface MeasurementStore extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
alocateMeasurements(MeasurementsInfo measurementInfo,
int sampleTimeMillis)
Make any allocations necessary for the following measurements.
|
void |
flush()
flush all data that might be buffered by this store.
|
void |
saveMeasurements(long tableId,
long timeStampMillis,
long... measurements)
Save measurements.
|
long alocateMeasurements(MeasurementsInfo measurementInfo, int sampleTimeMillis) throws IOException
measurementInfo
- - the information about the measurement(s)sampleTimeMillis
- - the expected sample time. (interval between the stored measurements).IOException
- - IO issues.void saveMeasurements(long tableId, long timeStampMillis, long... measurements) throws IOException
tableId
- - the table ID to store measurements for.timeStampMillis
- - the timestamp of the measurement (millis since Jan 1 1970 UTC)measurements
- - the measurements to persist. (same order as declared)IOException
- - IO issues.void flush() throws IOException
IOException
- - IO issues.Copyright © 2018 SPF4J. All rights reserved.