public abstract class AbstractOutputWriter extends java.lang.Object implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
static java.lang.String |
SETTING_LOG_LEVEL
Define the level of log message to display tweaking java.util.logging configuration.
|
static java.lang.String |
SETTING_LOG_LEVEL_DEFAULT_VALUE |
| Constructor and Description |
|---|
AbstractOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.logging.Level |
getDebugLevel()
To workaround the complex configuration of java.util.logging, we tweak the level for "debug style" messages
using the "logLevel" initialization parameter.
|
protected java.util.logging.Level |
getInfoLevel()
To workaround the complex configuration of java.util.logging, we tweak the level for "info style" messages
using the "logLevel" initialization parameter.
|
protected java.util.logging.Level |
getTraceLevel()
To workaround the complex configuration of java.util.logging, we tweak the level for "trace style" messages
using the "logLevel" initialization parameter.
|
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 |
preCollect()
Called before metrics collection starts
|
void |
preDestroy() |
abstract void |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
abstract void |
writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value) |
public static final java.lang.String SETTING_LOG_LEVEL
INFOpublic static final java.lang.String SETTING_LOG_LEVEL_DEFAULT_VALUE
protected final Logger logger
public void postConstruct(@Nonnull
java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpublic void preDestroy()
preDestroy in interface OutputWriterpublic 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 OutputWriterjava.io.IOExceptionpublic void preCollect()
throws java.io.IOException
OutputWriterpreCollect in interface OutputWriterjava.io.IOExceptionpublic abstract void writeInvocationResult(@Nonnull
java.lang.String invocationName,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterjava.io.IOExceptionpublic abstract void writeQueryResult(@Nonnull
java.lang.String metricName,
@Nullable
java.lang.String metricType,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWritermetricType - see Query.typejava.io.IOException@Nonnull protected java.util.logging.Level getDebugLevel()
@Nonnull protected java.util.logging.Level getTraceLevel()
@Nonnull protected java.util.logging.Level getInfoLevel()
Copyright © 2019. All Rights Reserved.