@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<String> typeNames,
boolean booleanAsNumber,
String rootPrefix,
Boolean debugEnabled,
String connectionUrl,
Map<String,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() |
String |
toString() |
void |
validateSetup(Server server,
Query query) |
create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabledpublic ElasticWriter(com.google.common.collect.ImmutableList<String> typeNames, boolean booleanAsNumber, String rootPrefix, Boolean debugEnabled, String connectionUrl, Map<String,Object> settings) throws IOException
IOExceptionprotected void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
internalWrite in class BaseOutputWriterExceptionpublic void start()
throws LifecycleException
start in interface OutputWriterstart in class BaseOutputWriterLifecycleExceptionpublic void close()
throws LifecycleException
close in interface OutputWriterclose in interface AutoCloseableclose in class BaseOutputWriterLifecycleExceptionpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic String toString()
toString in class BaseOutputWriterCopyright © 2010-2016 JmxTrans team. All Rights Reserved.