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 DmnEngineMetricCollector
collector
-
Constructor Summary
Constructors Constructor Description DmnEngineMetricCollectorWrapper(DmnEngineMetricCollector collector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
clearExecutedDecisionElements()
Resets the executed decision elements to 0.long
clearExecutedDecisionInstances()
Resets the executed decision instances to 0.long
getExecutedDecisionElements()
long
getExecutedDecisionInstances()
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 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:DmnDecisionTableEvaluationListener
Will be called after a decision table was evaluated.- Specified by:
notify
in interfaceDmnDecisionTableEvaluationListener
- Parameters:
evaluationEvent
- the evaluation event
-
notify
public void notify(DmnDecisionEvaluationEvent evaluationEvent)
Description copied from interface:DmnDecisionEvaluationListener
Will be called after a decision was evaluated.- Specified by:
notify
in interfaceDmnDecisionEvaluationListener
- Parameters:
evaluationEvent
- the evaluation event
-
notifyCollector
protected void notifyCollector(DmnDecisionLogicEvaluationEvent evaluationEvent)
-
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.
-
-