public class GraphiteWriter extends AbstractOutputWriter implements OutputWriter
true.SocketWriterPoolFactory.DEFAULT_SOCKET_CONNECT_TIMEOUT_IN_MILLIS
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_GRAPHITE_SERVER_PORT |
static String |
DEFAULT_NAME_PREFIX |
SETTING_HOST, SETTING_NAME_PREFIX, SETTING_PORT, SETTING_PROXY_HOST, SETTING_PROXY_PORT, SETTING_TOKEN, SETTING_URL, SETTING_USERNAME| Constructor and Description |
|---|
GraphiteWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Load settings, initialize the
SocketWriter pool and test the connection to the graphite server. |
void |
stop()
Close the
SocketWriter pool. |
void |
write(Iterable<QueryResult> results)
Send given metrics to the Graphite server.
|
equals, getBooleanSetting, getIntSetting, getIntSetting, getLongSetting, getSettings, getStrategy, getStringSetting, getStringSetting, hashCode, isEnabled, setEnabled, setSettings, setStrategy, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSettings, isEnabled, setEnabled, setSettingspublic static final int DEFAULT_GRAPHITE_SERVER_PORT
public static final String DEFAULT_NAME_PREFIX
public void start()
SocketWriter pool and test the connection to the graphite server.
a Logger.warn(String) message is emitted if the connection to the graphite server fails.start in interface OutputWriterstart in class AbstractOutputWriterpublic void write(Iterable<QueryResult> results)
write in interface OutputWriterwrite in class AbstractOutputWriterpublic void stop()
throws Exception
SocketWriter pool.stop in interface OutputWriterstop in class AbstractOutputWriterExceptionCopyright © 2014. All Rights Reserved.