public class StatsDOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SETTING_BUFFER_SIZE |
static java.lang.String |
SETTING_HOST |
static java.lang.String |
SETTING_HOST_NAMME |
static java.lang.String |
SETTING_PORT |
static java.lang.String |
SETTING_ROOT_PREFIX |
static java.lang.String |
SETTINGS_STATSD_TYPE |
static java.lang.String |
SETTINGS_TAGS |
static java.lang.String |
STATSD_DATADOG |
static java.lang.String |
STATSD_SYSDIG |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
StatsDOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSend(java.lang.String stat) |
boolean |
flush() |
protected java.lang.String |
getHostName() |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(java.util.Map<java.lang.String,java.lang.String> settings) |
void |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
void |
writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCollect, preDestroypublic static final java.lang.String SETTING_HOST
public static final java.lang.String SETTING_PORT
public static final java.lang.String SETTING_ROOT_PREFIX
public static final java.lang.String SETTING_HOST_NAMME
public static final java.lang.String SETTING_BUFFER_SIZE
public static final java.lang.String SETTINGS_STATSD_TYPE
public static final java.lang.String STATSD_DATADOG
public static final java.lang.String STATSD_SYSDIG
public static final java.lang.String SETTINGS_TAGS
public void postConstruct(java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected java.lang.String getHostName()
public void postCollect()
throws java.io.IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterjava.io.IOExceptionpublic void writeInvocationResult(java.lang.String invocationName,
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterjava.io.IOExceptionpublic void writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritermetricType - see Query.typejava.io.IOExceptionprotected boolean doSend(java.lang.String stat)
public boolean flush()
Copyright © 2018. All Rights Reserved.