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,
Map<String,Object> settings)
Uses JmxUtils.getDefaultPoolMap()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
flush() |
String |
getBucketType() |
String |
getHostname() |
int |
getPort() |
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
start() |
void |
stop() |
void |
validateSetup(Server server,
Query query) |
create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, setSettingspublic 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, 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 stop()
throws LifecycleException
stop in interface OutputWriterstop 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-2015 JmxTrans team. All Rights Reserved.