public class StatsDWriter extends BaseOutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT_PREFIX |
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
StatsDWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
String host,
Integer port,
String bucketType,
String rootPrefix,
Boolean stringsValuesAsKey,
Long stringValueDefaultCount,
Map<String,Object> settings)
Uses JmxUtils.getDefaultPoolMap()
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
flush() |
String |
getBucketType() |
String |
getHostname() |
int |
getPort() |
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
start() |
void |
validateSetup(Server server,
Query query) |
create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, toStringpublic static final String ROOT_PREFIX
public StatsDWriter(com.google.common.collect.ImmutableList<String> typeNames, boolean booleanAsNumber, Boolean debugEnabled, String host, Integer port, String bucketType, String rootPrefix, Boolean stringsValuesAsKey, Long stringValueDefaultCount, Map<String,Object> settings) throws IOException
IOExceptionpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic void start()
throws LifecycleException
start in interface OutputWriterstart in class BaseOutputWriterLifecycleExceptionpublic void close()
throws LifecycleException
close in interface OutputWriterclose in interface AutoCloseableclose in class BaseOutputWriterLifecycleExceptionpublic void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
internalWrite in class BaseOutputWriterExceptionpublic boolean flush()
public String getBucketType()
public String getHostname()
public int getPort()
Copyright © 2010-2017 JmxTrans team. All Rights Reserved.