public class StatsDWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME_PREFIX |
static String |
SETTING_BUFFER_SIZE |
logger, SETTING_HOST, SETTING_NAME_PREFIX, SETTING_PORT, SETTING_PROTOCOL, SETTING_PROXY_HOST, SETTING_PROXY_PORT, SETTING_SOCKET_FACTORY, SETTING_TLS_INSECURE, SETTING_TLS_KEY_STORE, SETTING_TLS_KEY_STORE_PASSWORD, SETTING_TLS_TRUST_STORE, SETTING_TLS_TRUST_STORE_PASSWORD, SETTING_TOKEN, SETTING_URL, SETTING_USE_TLS, SETTING_USERNAME| Constructor and Description |
|---|
StatsDWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
protected char |
getStatsdMetricType(QueryResult result)
See StatsD Metric Types.
|
void |
start()
No-op implementation
|
void |
stop()
No-op implementation
|
String |
toString() |
void |
write(Iterable<QueryResult> results)
Write all the given QueryResult to the target system.
|
equals, getBooleanSetting, getIntSetting, getIntSetting, getLongSetting, getSettings, getStrategy, getStringSetting, getStringSetting, hashCode, isEnabled, setEnabled, setSettings, setStrategyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSettings, isEnabled, setEnabled, setSettingspublic static final String SETTING_BUFFER_SIZE
public static final String DEFAULT_NAME_PREFIX
public void start()
AbstractOutputWriterstart in interface OutputWriterstart in class AbstractOutputWriterpublic void stop()
throws Exception
AbstractOutputWriterstop in interface OutputWriterstop in class AbstractOutputWriterExceptionpublic void write(Iterable<QueryResult> results)
OutputWriterwrite in interface OutputWriterwrite in class AbstractOutputWriterpublic void flush()
protected char getStatsdMetricType(@Nonnull QueryResult result)
result - public String toString()
toString in class AbstractOutputWriterCopyright © 2015. All Rights Reserved.