public final class GraphiteUdpStore extends Object implements MeasurementStore
Modifier and Type | Field and Description |
---|---|
static int |
MAX_UDP_MSG_SIZE |
Constructor and Description |
---|
GraphiteUdpStore(String hostPort) |
GraphiteUdpStore(String hostName,
int port) |
GraphiteUdpStore(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() |
static void |
writeMetric(EntityMeasurementsInfo measurementInfo,
String measurementName,
long measurement,
long timeStampMillis,
Writer os) |
public static final int MAX_UDP_MSG_SIZE
public GraphiteUdpStore(String hostPort) throws ObjectCreationException, URISyntaxException
public GraphiteUdpStore(URI uri) throws ObjectCreationException
ObjectCreationException
public GraphiteUdpStore(String hostName, int port) throws ObjectCreationException
ObjectCreationException
public void flush()
MeasurementStore
flush
in interface MeasurementStore
public void alocateMeasurements(EntityMeasurementsInfo measurement, int sampleTimeMillis)
MeasurementStore
alocateMeasurements
in interface MeasurementStore
public void saveMeasurements(EntityMeasurementsInfo measurementInfo, long timeStampMillis, int sampleTimeMillis, long... measurements) throws IOException
MeasurementStore
saveMeasurements
in interface MeasurementStore
IOException
public static void writeMetric(EntityMeasurementsInfo measurementInfo, String measurementName, long measurement, long timeStampMillis, Writer os) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014. All rights reserved.