public class LibratoWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LIBRATO_API_URL |
static String |
SETTING_TOKEN |
static 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(Map<String,String> settings) |
void |
writeInvocationResult(String invocationName,
Object value) |
void |
writeQueryResult(String metricName,
String metricType,
Object value) |
protected void |
writeQueryResult(String metricName,
String metricType,
Object value,
Writer out) |
getDebugLevel, getInfoLevel, getTraceLevel, preCollect, preDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCollect, preDestroypublic static final String DEFAULT_LIBRATO_API_URL
public static final String SETTING_USERNAME
public static final String SETTING_TOKEN
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterpublic void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterIOExceptionpublic void writeInvocationResult(String invocationName, Object value) throws IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterIOExceptionpublic void writeQueryResult(String metricName, String metricType, Object value) throws IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritermetricType - see Query.typeIOExceptionprotected void writeQueryResult(String metricName, String metricType, Object value, Writer out) throws IOException
IOExceptionpublic int getExceptionCounter()
Copyright © 2017. All Rights Reserved.