@NotThreadSafe public abstract class BaseOutputWriter extends Object implements OutputWriter, OutputWriterFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
BINARY_PATH |
static String |
BOOLEAN_AS_NUMBER |
static String |
DEBUG |
static String |
HOST |
static String |
OUTPUT_FILE |
static String |
PORT |
static String |
TEMPLATE_FILE |
static String |
TYPE_NAMES |
| Constructor and Description |
|---|
BaseOutputWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
OutputWriter |
create() |
void |
doWrite(Server server,
Query query,
Iterable<Result> results) |
protected <T> T |
firstNonNull(T first,
T second,
T third) |
protected String |
getConcatedTypeNameValues(String typeNameStr)
Given a typeName string, get the first match from the typeNames setting.
|
Map<String,Object> |
getSettings()
Deprecated.
Don't use the settings Map, please extract necessary bits at construction time.
|
protected abstract void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateSetuppublic static final String HOST
public static final String PORT
public static final String OUTPUT_FILE
public static final String TEMPLATE_FILE
public static final String BINARY_PATH
public static final String DEBUG
public static final String TYPE_NAMES
public static final String BOOLEAN_AS_NUMBER
@Deprecated public Map<String,Object> getSettings()
OutputWritergetSettings in interface OutputWriterprotected String getConcatedTypeNameValues(String typeNameStr)
public void start()
throws LifecycleException
start in interface OutputWriterLifecycleExceptionpublic void stop()
throws LifecycleException
stop in interface OutputWriterLifecycleExceptionpublic final void doWrite(Server server, Query query, Iterable<Result> results) throws Exception
doWrite in interface OutputWriterExceptionprotected abstract void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
Exceptionpublic OutputWriter create()
create in interface OutputWriterFactoryCopyright © 2010-2016 JmxTrans team. All Rights Reserved.