@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
IOExceptionpublic void alocateMeasurements(EntityMeasurementsInfo measurement, int sampleTimeMillis) throws IOException
MeasurementStorealocateMeasurements in interface MeasurementStoreIOExceptionpublic void saveMeasurements(EntityMeasurementsInfo measurementInfo, long timeStampMillis, int sampleTimeMillis, long... measurements) throws IOException
MeasurementStoresaveMeasurements in interface MeasurementStoreIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic List<String> generateCharts(int width, int height) throws IOException
IOExceptionpublic List<String> generateCharts(long startTimeMillis, long endTimeMillis, int width, int height) throws IOException
startTimeMillis - endTimeMillis - width - height - IOExceptionpublic 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
MeasurementStoreflush in interface MeasurementStoreIOExceptionCopyright © 2014. All rights reserved.