public class RulesChronoAgendaEventListener
extends org.kie.api.event.rule.DefaultAgendaEventListener
Serializable result.RulesChronoChartRecorder,
PerfStat| Modifier and Type | Field and Description |
|---|---|
protected long |
aggregationPeriodMs |
protected ConcurrentHashMap<String,PerfStat> |
rulesStat |
protected String |
sessionPrefix |
protected boolean |
usePackageName |
| Constructor and Description |
|---|
RulesChronoAgendaEventListener()
Creates
RulesChronoAgendaEventListener with default aggregation period |
RulesChronoAgendaEventListener(long aggregationPeriodMs)
Creates
RulesChronoAgendaEventListener with aggregation period |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event) |
void |
beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event) |
TreeMap<String,Stat> |
getPerfStat() |
void |
reset() |
RulesChronoAgendaEventListener |
withPackageName(boolean usePackageName)
Include rule package name to qualify rule name, false by default
|
RulesChronoAgendaEventListener |
withSessionPrefix(String sessionPrefix)
Include unique session prefix to segregate statistic.
Optional unless you want to use different aggregation periods for the same rule names. If several listeners gather statistic under the same name statistic will be merged and 'peer' counter increased. |
protected final ConcurrentHashMap<String,PerfStat> rulesStat
protected final long aggregationPeriodMs
protected String sessionPrefix
protected boolean usePackageName
public RulesChronoAgendaEventListener()
RulesChronoAgendaEventListener with default aggregation periodpublic RulesChronoAgendaEventListener(long aggregationPeriodMs)
RulesChronoAgendaEventListener with aggregation periodaggregationPeriodMs - public RulesChronoAgendaEventListener withPackageName(boolean usePackageName)
public RulesChronoAgendaEventListener withSessionPrefix(String sessionPrefix)
public void beforeMatchFired(org.kie.api.event.rule.BeforeMatchFiredEvent event)
beforeMatchFired in interface org.kie.api.event.rule.AgendaEventListenerbeforeMatchFired in class org.kie.api.event.rule.DefaultAgendaEventListenerpublic void afterMatchFired(org.kie.api.event.rule.AfterMatchFiredEvent event)
afterMatchFired in interface org.kie.api.event.rule.AgendaEventListenerafterMatchFired in class org.kie.api.event.rule.DefaultAgendaEventListenerpublic void reset()
Copyright © 2021. All rights reserved.