@NotThreadSafe public class ElasticWriter extends BaseOutputWriter
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
ElasticWriter(com.google.common.collect.ImmutableList<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.String rootPrefix,
java.lang.Boolean debugEnabled,
java.lang.String connectionUrl,
java.util.Map<java.lang.String,java.lang.Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
start() |
java.lang.String |
toString() |
void |
validateSetup(Server server,
Query query) |
create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabledpublic ElasticWriter(com.google.common.collect.ImmutableList<java.lang.String> typeNames,
boolean booleanAsNumber,
java.lang.String rootPrefix,
java.lang.Boolean debugEnabled,
java.lang.String connectionUrl,
java.util.Map<java.lang.String,java.lang.Object> settings)
throws java.io.IOException
java.io.IOExceptionprotected void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws java.lang.Exception
internalWrite in class BaseOutputWriterjava.lang.Exceptionpublic void start()
throws LifecycleException
start in interface OutputWriterstart in class BaseOutputWriterLifecycleExceptionpublic void close()
throws LifecycleException
close in interface OutputWriterclose in interface java.lang.AutoCloseableclose in class BaseOutputWriterLifecycleExceptionpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic java.lang.String toString()
toString in class BaseOutputWriterCopyright © 2010-2017 JmxTrans team. All Rights Reserved.