@ThreadSafe public final class TSDBMeasurementStore extends Object implements MeasurementStore
Constructor and Description |
---|
TSDBMeasurementStore(String databaseName) |
Modifier and Type | Method and Description |
---|---|
void |
alocateMeasurements(EntityMeasurementsInfo measurement,
int sampleTimeMillis)
Make any allocations necessary for the following measurements.
|
static boolean |
canGenerateCount(TSTable info) |
static boolean |
canGenerateHeatChart(TSTable info) |
static boolean |
canGenerateMinMaxAvgCount(TSTable info) |
void |
close() |
void |
flush()
flush all data that might be buffered by this store.
|
List<String> |
generateCharts(int width,
int height) |
List<String> |
generateCharts(long startTimeMillis,
long endTimeMillis,
int width,
int height)
Quantized recorders will have min, max avg charts and distribution charts
generated.
|
static boolean |
isCounterOnly(TSTable info) |
void |
saveMeasurements(EntityMeasurementsInfo measurementInfo,
long timeStampMillis,
int sampleTimeMillis,
long... measurements)
Save measurements.
|
String |
toString() |
public TSDBMeasurementStore(String databaseName) throws IOException
IOException
public void alocateMeasurements(EntityMeasurementsInfo measurement, int sampleTimeMillis) throws IOException
MeasurementStore
alocateMeasurements
in interface MeasurementStore
IOException
public void saveMeasurements(EntityMeasurementsInfo measurementInfo, long timeStampMillis, int sampleTimeMillis, long... measurements) throws IOException
MeasurementStore
saveMeasurements
in interface MeasurementStore
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public List<String> generateCharts(int width, int height) throws IOException
IOException
public List<String> generateCharts(long startTimeMillis, long endTimeMillis, int width, int height) throws IOException
startTimeMillis
- endTimeMillis
- width
- height
- IOException
public static boolean isCounterOnly(TSTable info)
public static boolean canGenerateMinMaxAvgCount(TSTable info)
public static boolean canGenerateCount(TSTable info)
public static boolean canGenerateHeatChart(TSTable info)
public void flush() throws IOException
MeasurementStore
flush
in interface MeasurementStore
IOException
Copyright © 2014. All rights reserved.