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 |
|---|---|
void |
alocateMeasurements(EntityMeasurementsInfo 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(EntityMeasurementsInfo measurementInfo,
long timeStampMillis,
int sampleTimeMillis,
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 void alocateMeasurements(EntityMeasurementsInfo measurement, int sampleTimeMillis)
MeasurementStorealocateMeasurements in interface MeasurementStorepublic 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 void flush()
MeasurementStoreflush in interface MeasurementStoreCopyright © 2014. All rights reserved.