public class PerMinuteSummarizerOutputWriter extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected OutputWriter |
delegate |
protected java.util.Map<java.lang.String,java.util.Queue<QueryResult>> |
previousQueryResultsByMetricName |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
PerMinuteSummarizerOutputWriter() |
PerMinuteSummarizerOutputWriter(OutputWriter delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected QueryResult |
getPreviousQueryResult(QueryResult currentResult) |
QueryResult |
perMinute(QueryResult currentResult,
QueryResult previousResult) |
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() |
void |
setDelegate(OutputWriter delegate) |
protected void |
storeQueryResult(QueryResult currentResult) |
void |
writeInvocationResult(java.lang.String invocationName,
java.lang.Object value) |
void |
writeQueryResult(java.lang.String metricName,
java.lang.String metricType,
java.lang.Object value) |
getDebugLevel, getInfoLevel, getTraceLevelprotected OutputWriter delegate
protected java.util.Map<java.lang.String,java.util.Queue<QueryResult>> previousQueryResultsByMetricName
public PerMinuteSummarizerOutputWriter()
public PerMinuteSummarizerOutputWriter(OutputWriter delegate)
public void writeInvocationResult(@Nonnull
java.lang.String invocationName,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterjava.io.IOExceptionpublic void writeQueryResult(@Nonnull
java.lang.String metricName,
@Nullable
java.lang.String metricType,
@Nullable
java.lang.Object value)
throws java.io.IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritermetricType - see Query.typejava.io.IOExceptionprotected void storeQueryResult(@Nullable
QueryResult currentResult)
@Nullable protected QueryResult getPreviousQueryResult(@Nonnull QueryResult currentResult)
@Nonnull public QueryResult perMinute(@Nonnull QueryResult currentResult, @Nullable QueryResult previousResult)
public void postConstruct(@Nonnull
java.util.Map<java.lang.String,java.lang.String> settings)
postConstruct in interface OutputWriterpostConstruct in class AbstractOutputWriterpublic void preDestroy()
preDestroy in interface OutputWriterpreDestroy 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 preCollect()
throws java.io.IOException
OutputWriterpreCollect in interface OutputWriterpreCollect in class AbstractOutputWriterjava.io.IOExceptionpublic void setDelegate(OutputWriter delegate)
Copyright © 2017. All Rights Reserved.