public class RulesChronoChartRecorder extends RulesChronoAgendaEventListener
TimeSeries.RulesChronoAgendaEventListener,
PerfStat| Modifier and Type | Class and Description |
|---|---|
static class |
RulesChronoChartRecorder.DataType |
| Modifier and Type | Field and Description |
|---|---|
protected org.jfree.data.time.TimeSeries |
globalAvgChart |
protected org.jfree.data.time.TimeSeries |
globalMaxChart |
protected org.jfree.data.time.TimeSeries |
globalMinChart |
static int |
RETENTION_PERIOD_MIN |
protected long |
retentionPeriodSec |
protected ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> |
rulesAvgChart |
protected ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> |
rulesMaxChart |
protected ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> |
rulesMinChart |
aggregationPeriodMs, rulesStat, sessionPrefix, usePackageName| Constructor and Description |
|---|
RulesChronoChartRecorder()
Creates
RulesChronoChartRecorder with no session prefix and default aggregation period |
RulesChronoChartRecorder(long aggregationPeriodMs)
Creates
RulesChronoChartRecorder with no session prefix and provided aggregation period |
| Modifier and Type | Method and Description |
|---|---|
org.jfree.data.time.TimeSeries |
getGlobalAvgChart() |
org.jfree.data.time.TimeSeries |
getGlobalMaxChart() |
org.jfree.data.time.TimeSeries |
getGlobalMinChart() |
TreeMap<String,org.jfree.data.time.TimeSeries> |
getRulesAvgChart() |
TreeMap<String,org.jfree.data.time.TimeSeries> |
getRulesMaxChart() |
TreeMap<String,org.jfree.data.time.TimeSeries> |
getRulesMinChart() |
boolean |
isRecordingStarted() |
protected void |
recordTimeSeries() |
void |
reset() |
RulesChronoChartRecorder |
withAvgThreshold(double threshold)
Start gather chart data only if threshold value reached
|
RulesChronoChartRecorder |
withDataTypes(RulesChronoChartRecorder.DataType... dataTypes)
Per rule and global (generalized) chart data is gathered by default
|
RulesChronoChartRecorder |
withMaxThreshold(double threshold)
Start gather chart data only if threshold value reached
|
RulesChronoChartRecorder |
withMinThreshold(double threshold)
Start gather chart data only if threshold value reached
|
RulesChronoChartRecorder |
withPackageName(boolean usePackageName)
Include rule package name to qualify rule name, false by default
|
RulesChronoChartRecorder |
withRetentionPeriod(long time,
TimeUnit units)
Retain last 3h chart data by default
|
RulesChronoChartRecorder |
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. |
afterMatchFired, beforeMatchFired, getPerfStatpublic static final int RETENTION_PERIOD_MIN
protected final ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> rulesMaxChart
protected final ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> rulesAvgChart
protected final ConcurrentHashMap<String,org.jfree.data.time.TimeSeries> rulesMinChart
protected org.jfree.data.time.TimeSeries globalMaxChart
protected org.jfree.data.time.TimeSeries globalAvgChart
protected org.jfree.data.time.TimeSeries globalMinChart
protected long retentionPeriodSec
public RulesChronoChartRecorder()
RulesChronoChartRecorder with no session prefix and default aggregation periodpublic RulesChronoChartRecorder(long aggregationPeriodMs)
RulesChronoChartRecorder with no session prefix and provided aggregation periodaggregationPeriodMs - public RulesChronoChartRecorder withRetentionPeriod(long time, TimeUnit units)
public RulesChronoChartRecorder withDataTypes(RulesChronoChartRecorder.DataType... dataTypes)
public RulesChronoChartRecorder withMaxThreshold(double threshold)
public RulesChronoChartRecorder withAvgThreshold(double threshold)
public RulesChronoChartRecorder withMinThreshold(double threshold)
public RulesChronoChartRecorder withPackageName(boolean usePackageName)
RulesChronoAgendaEventListenerwithPackageName in class RulesChronoAgendaEventListenerpublic RulesChronoChartRecorder withSessionPrefix(String sessionPrefix)
RulesChronoAgendaEventListenerwithSessionPrefix in class RulesChronoAgendaEventListenerprotected void recordTimeSeries()
public org.jfree.data.time.TimeSeries getGlobalMaxChart()
public org.jfree.data.time.TimeSeries getGlobalAvgChart()
public org.jfree.data.time.TimeSeries getGlobalMinChart()
public boolean isRecordingStarted()
public void reset()
reset in class RulesChronoAgendaEventListenerCopyright © 2021. All rights reserved.