public class GraphitePlainTextTcpOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
graphiteServerSocketAddress |
protected String |
metricPathPrefix |
static String |
SETTING_HOST |
static String |
SETTING_NAME_PREFIX |
static String |
SETTING_PORT |
static int |
SETTING_PORT_DEFAULT_VALUE |
| Constructor and Description |
|---|
GraphitePlainTextTcpOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildMetricPathPrefix()
InetAddress.getLocalHost() may not be known at JVM startup when the process is launched as a Linux service. |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
String |
toString() |
void |
writeResult(String metricName,
Object value) |
preCollect, preDestroy, writeInvocationResult, writeQueryResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpreCollect, preDestroy, writeInvocationResult, writeQueryResultpublic static final String SETTING_PORT
public static final String SETTING_HOST
public static final String SETTING_NAME_PREFIX
public static final int SETTING_PORT_DEFAULT_VALUE
protected String metricPathPrefix
protected InetSocketAddress graphiteServerSocketAddress
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected String buildMetricPathPrefix()
InetAddress.getLocalHost() may not be known at JVM startup when the process is launched as a Linux service.public void writeResult(String metricName, Object value) throws IOException
writeResult in class AbstractOutputWriterIOExceptionpublic void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterIOExceptionCopyright © 2013. All Rights Reserved.