public class ZabbixTcpOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.util.Map<java.lang.String,java.lang.String> settings) |
void |
preDestroy() |
java.lang.String |
toString() |
void |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
protected void |
writeMessage(byte[] data) |
void |
writeQueryResult(java.lang.String metricName,
java.lang.String type,
java.lang.Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpreCollectpublic static final java.lang.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(java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterpublic void writeInvocationResult(@Nonnull
java.lang.String invocationName,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterjava.io.IOExceptionpublic void writeQueryResult(@Nonnull
java.lang.String metricName,
@Nullable
java.lang.String type,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritertype - see Query.typejava.io.IOExceptionprotected void writeMessage(byte[] data)
throws java.io.IOException
java.io.IOExceptionpublic void postCollect()
throws java.io.IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void preDestroy()
preDestroy in interface OutputWriterpreDestroy in class AbstractOutputWriterCopyright © 2017. All Rights Reserved.