public class EnhancedStatsCollector extends AbstractStatsCollector
SimpleStatsCollector this listener is able to detect rendering
errors. Also Identified.getGeneratedId() is used to map statistics to a
template. On the other hand it's more resource-intensive.| Modifier and Type | Class and Description |
|---|---|
static class |
EnhancedStatsCollector.ExecutionData |
AbstractStatsCollector.Stats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPUTING_CACHE_CONSUMER_ID |
protected ComputingCache<java.lang.Long,java.util.concurrent.ConcurrentMap<java.lang.Long,EnhancedStatsCollector.ExecutionData>> |
data |
IS_NOT_ONEOFF_LAMBA_TEMPLATEconfiguration| Constructor and Description |
|---|
EnhancedStatsCollector() |
EnhancedStatsCollector(com.google.common.base.Predicate<java.lang.String> templatePredicate,
java.util.concurrent.TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Drop all the collected data.
|
java.util.Collection<EnhancedStatsCollector.ExecutionData> |
getRawData(Mustache mustache) |
java.util.Set<AbstractStatsCollector.Stats> |
getStats() |
AbstractStatsCollector.Stats |
getStats(Mustache mustache) |
protected void |
init()
Can be overridden so that there's no need to call
super.init(Configuration). |
void |
renderingFinished(MustacheRenderingEvent event)
Rendering of a
Mustache is about to finish. |
void |
renderingStarted(MustacheRenderingEvent event)
Rendering of a
Mustache is about to start. |
convert, getTimeUnit, isAppliedcompilationFinished, parsingStartedgetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic static final java.lang.String COMPUTING_CACHE_CONSUMER_ID
protected ComputingCache<java.lang.Long,java.util.concurrent.ConcurrentMap<java.lang.Long,EnhancedStatsCollector.ExecutionData>> data
public EnhancedStatsCollector()
public EnhancedStatsCollector(com.google.common.base.Predicate<java.lang.String> templatePredicate,
java.util.concurrent.TimeUnit timeUnit)
public void renderingStarted(MustacheRenderingEvent event)
MustacheListenerMustache is about to start. Always use
ReleaseCallbackContainer.registerReleaseCallback(ReleaseCallback)
to release all the necessary resources.renderingStarted in interface MustacheListenerrenderingStarted in class AbstractMustacheListenerpublic void renderingFinished(MustacheRenderingEvent event)
MustacheListenerMustache is about to finish. Always use
ReleaseCallbackContainer.registerReleaseCallback(ReleaseCallback)
to release all the necessary resources.renderingFinished in interface MustacheListenerrenderingFinished in class AbstractMustacheListenerprotected void init()
AbstractConfigurationAwaresuper.init(Configuration).init in class AbstractConfigurationAwarepublic AbstractStatsCollector.Stats getStats(Mustache mustache)
mustache - public java.util.Set<AbstractStatsCollector.Stats> getStats()
public java.util.Collection<EnhancedStatsCollector.ExecutionData> getRawData(Mustache mustache)
mustache - public void clearData()
Copyright © 2014. All Rights Reserved.