public class StatsDOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
SETTING_BUFFER_SIZE |
static String |
SETTING_HOST |
static String |
SETTING_PORT |
static String |
SETTING_ROOT_PREFIX |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
StatsDOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
flush() |
protected String |
getHostName() |
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
void |
writeInvocationResult(String invocationName,
Object value) |
void |
writeQueryResult(String metricName,
String metricType,
Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCollect, preDestroypublic static final String SETTING_HOST
public static final String SETTING_PORT
public static final String SETTING_ROOT_PREFIX
public static final String SETTING_BUFFER_SIZE
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterprotected String getHostName()
public 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 AbstractOutputWriterIOExceptionpublic void writeInvocationResult(String invocationName, Object value) throws IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterIOExceptionpublic void writeQueryResult(String metricName, String metricType, Object value) throws IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritermetricType - see Query.typeIOExceptionpublic boolean flush()
Copyright © 2015. All Rights Reserved.