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 String |
COMPUTING_CACHE_CONSUMER_ID |
protected ComputingCache<Long,ConcurrentMap<Long,EnhancedStatsCollector.ExecutionData>> |
data |
IS_NOT_ONEOFF_LAMBA_TEMPLATEconfiguration| Constructor and Description |
|---|
EnhancedStatsCollector() |
EnhancedStatsCollector(com.google.common.base.Predicate<String> templatePredicate,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Drop all the collected data.
|
Collection<EnhancedStatsCollector.ExecutionData> |
getRawData(Mustache mustache) |
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 String COMPUTING_CACHE_CONSUMER_ID
protected ComputingCache<Long,ConcurrentMap<Long,EnhancedStatsCollector.ExecutionData>> data
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 Set<AbstractStatsCollector.Stats> getStats()
public Collection<EnhancedStatsCollector.ExecutionData> getRawData(Mustache mustache)
mustache - public void clearData()
Copyright © 2015. All Rights Reserved.