public class LibratoWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_LIBRATO_API_URL |
static java.lang.String |
SETTING_TOKEN |
static java.lang.String |
SETTING_USERNAME |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
LibratoWriter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getExceptionCounter() |
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 |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
void |
writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value) |
protected void |
writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value,
java.io.Writer out) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCollect, preDestroypublic static final java.lang.String DEFAULT_LIBRATO_API_URL
public static final java.lang.String SETTING_USERNAME
public static final java.lang.String SETTING_TOKEN
public void postConstruct(java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterpublic 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 void writeInvocationResult(java.lang.String invocationName,
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterjava.io.IOExceptionpublic void writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritermetricType - see Query.typejava.io.IOExceptionprotected void writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value,
java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic int getExceptionCounter()
Copyright © 2019. All Rights Reserved.