Class DmnEngineMetricCollectorWrapper
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.metrics.DmnEngineMetricCollectorWrapper
-
- All Implemented Interfaces:
DmnDecisionEvaluationListener,DmnDecisionTableEvaluationListener,DmnEngineMetricCollector
public class DmnEngineMetricCollectorWrapper extends java.lang.Object implements DmnEngineMetricCollector, DmnDecisionEvaluationListener
-
-
Field Summary
Fields Modifier and Type Field Description protected DmnEngineMetricCollectorcollector
-
Constructor Summary
Constructors Constructor Description DmnEngineMetricCollectorWrapper(DmnEngineMetricCollector collector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longclearExecutedDecisionElements()Resets the executed decision elements to 0.longclearExecutedDecisionInstances()Resets the executed decision instances to 0.longgetExecutedDecisionElements()longgetExecutedDecisionInstances()voidnotify(DmnDecisionEvaluationEvent evaluationEvent)Will be called after a decision was evaluated.voidnotify(DmnDecisionTableEvaluationEvent evaluationEvent)Will be called after a decision table was evaluated.protected voidnotifyCollector(DmnDecisionLogicEvaluationEvent evaluationEvent)
-
-
-
Field Detail
-
collector
protected final DmnEngineMetricCollector collector
-
-
Constructor Detail
-
DmnEngineMetricCollectorWrapper
public DmnEngineMetricCollectorWrapper(DmnEngineMetricCollector collector)
-
-
Method Detail
-
notify
public void notify(DmnDecisionTableEvaluationEvent evaluationEvent)
Description copied from interface:DmnDecisionTableEvaluationListenerWill be called after a decision table was evaluated.- Specified by:
notifyin interfaceDmnDecisionTableEvaluationListener- Parameters:
evaluationEvent- the evaluation event
-
notify
public void notify(DmnDecisionEvaluationEvent evaluationEvent)
Description copied from interface:DmnDecisionEvaluationListenerWill be called after a decision was evaluated.- Specified by:
notifyin interfaceDmnDecisionEvaluationListener- Parameters:
evaluationEvent- the evaluation event
-
notifyCollector
protected void notifyCollector(DmnDecisionLogicEvaluationEvent evaluationEvent)
-
getExecutedDecisionInstances
public long getExecutedDecisionInstances()
- Specified by:
getExecutedDecisionInstancesin interfaceDmnEngineMetricCollector- Returns:
- the number of executed decision instances since creation of this engine
-
getExecutedDecisionElements
public long getExecutedDecisionElements()
- Specified by:
getExecutedDecisionElementsin interfaceDmnEngineMetricCollector- Returns:
- the number of executed decision elements since creation of this engine
-
clearExecutedDecisionInstances
public long clearExecutedDecisionInstances()
Description copied from interface:DmnEngineMetricCollectorResets the executed decision instances to 0.- Specified by:
clearExecutedDecisionInstancesin interfaceDmnEngineMetricCollector- Returns:
- the number of executed decision elements before resetting.
-
clearExecutedDecisionElements
public long clearExecutedDecisionElements()
Description copied from interface:DmnEngineMetricCollectorResets the executed decision elements to 0.- Specified by:
clearExecutedDecisionElementsin interfaceDmnEngineMetricCollector- Returns:
- the number of executed decision elements before resetting.
-
-