public final class GraphiteTcpStore extends Object implements MeasurementStore
| Constructor and Description |
|---|
GraphiteTcpStore(String hostPort) |
GraphiteTcpStore(String hostName,
int port) |
GraphiteTcpStore(String hostName,
int port,
SocketFactory socketFactory) |
GraphiteTcpStore(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
long |
alocateMeasurements(MeasurementsInfo measurement,
int sampleTimeMillis)
Make any allocations necessary for the following measurements.
|
void |
close() |
void |
flush()
flush all data that might be buffered by this store.
|
void |
saveMeasurements(long tableId,
long timeStampMillis,
long... measurements)
Save measurements.
|
String |
toString() |
public GraphiteTcpStore(String hostPort) throws ObjectCreationException, URISyntaxException
public GraphiteTcpStore(URI uri) throws ObjectCreationException
ObjectCreationExceptionpublic GraphiteTcpStore(String hostName, int port) throws ObjectCreationException
ObjectCreationExceptionpublic GraphiteTcpStore(String hostName, int port, SocketFactory socketFactory) throws ObjectCreationException
ObjectCreationExceptionpublic long alocateMeasurements(MeasurementsInfo measurement, int sampleTimeMillis)
MeasurementStorealocateMeasurements in interface MeasurementStoremeasurement - - the information about the measurement(s)sampleTimeMillis - - the expected sample time. (interval between the stored measurements).public void saveMeasurements(long tableId,
long timeStampMillis,
long... measurements)
throws IOException
MeasurementStoresaveMeasurements in interface MeasurementStoretableId - - 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.public void close()
close in interface Closeableclose in interface AutoCloseablepublic void flush()
MeasurementStoreflush in interface MeasurementStoreCopyright © 2018 SPF4J. All rights reserved.