Class DmnEngineMetricCollectorWrapper
java.lang.Object
org.camunda.bpm.dmn.engine.impl.metrics.DmnEngineMetricCollectorWrapper
- All Implemented Interfaces:
DmnDecisionEvaluationListener
,DmnDecisionTableEvaluationListener
,DmnEngineMetricCollector
public class DmnEngineMetricCollectorWrapper
extends Object
implements DmnEngineMetricCollector, DmnDecisionEvaluationListener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Resets the executed decision elements to 0.long
Resets the executed decision instances to 0.long
long
void
notify
(DmnDecisionEvaluationEvent evaluationEvent) Will be called after a decision was evaluated.void
notify
(DmnDecisionTableEvaluationEvent evaluationEvent) Will be called after a decision table was evaluated.protected void
notifyCollector
(DmnDecisionLogicEvaluationEvent evaluationEvent)
-
Field Details
-
collector
-
-
Constructor Details
-
DmnEngineMetricCollectorWrapper
-
-
Method Details
-
notify
Description copied from interface:DmnDecisionTableEvaluationListener
Will be called after a decision table was evaluated.- Specified by:
notify
in interfaceDmnDecisionTableEvaluationListener
- Parameters:
evaluationEvent
- the evaluation event
-
notify
Description copied from interface:DmnDecisionEvaluationListener
Will be called after a decision was evaluated.- Specified by:
notify
in interfaceDmnDecisionEvaluationListener
- Parameters:
evaluationEvent
- the evaluation event
-
notifyCollector
-
getExecutedDecisionInstances
public long getExecutedDecisionInstances()- Specified by:
getExecutedDecisionInstances
in interfaceDmnEngineMetricCollector
- Returns:
- the number of executed decision instances since creation of this engine
-
getExecutedDecisionElements
public long getExecutedDecisionElements()- Specified by:
getExecutedDecisionElements
in interfaceDmnEngineMetricCollector
- Returns:
- the number of executed decision elements since creation of this engine
-
clearExecutedDecisionInstances
public long clearExecutedDecisionInstances()Description copied from interface:DmnEngineMetricCollector
Resets the executed decision instances to 0.- Specified by:
clearExecutedDecisionInstances
in interfaceDmnEngineMetricCollector
- Returns:
- the number of executed decision elements before resetting.
-
clearExecutedDecisionElements
public long clearExecutedDecisionElements()Description copied from interface:DmnEngineMetricCollector
Resets the executed decision elements to 0.- Specified by:
clearExecutedDecisionElements
in interfaceDmnEngineMetricCollector
- Returns:
- the number of executed decision elements before resetting.
-