public class ZabbixTcpOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS |
static int |
SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUE |
protected HostAndPort |
zabbixServerHostAndPort |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
ZabbixTcpOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
void |
preDestroy() |
String |
toString() |
void |
writeInvocationResult(String invocationName,
Object value) |
protected void |
writeMessage(byte[] data) |
void |
writeQueryResult(String metricName,
String type,
Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpreCollectpublic static final String SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS
public static final int SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUE
protected HostAndPort zabbixServerHostAndPort
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterpublic void writeInvocationResult(@Nonnull String invocationName, @Nullable Object value) throws IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterIOExceptionpublic void writeQueryResult(@Nonnull String metricName, @Nullable String type, @Nullable Object value) throws IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritertype - see Query.typeIOExceptionprotected void writeMessage(byte[] data)
throws IOException
IOExceptionpublic 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 preDestroy()
preDestroy in interface OutputWriterpreDestroy in class AbstractOutputWriterCopyright © 2017. All Rights Reserved.