Class DefaultEngineMetricCollector
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.metrics.DefaultEngineMetricCollector
-
- All Implemented Interfaces:
DmnDecisionEvaluationListener
,DmnDecisionTableEvaluationListener
,DmnEngineMetricCollector
public class DefaultEngineMetricCollector extends Object implements DmnEngineMetricCollector, DmnDecisionEvaluationListener
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicLong
executedDecisionElements
protected AtomicLong
executedDecisionInstances
-
Constructor Summary
Constructors Constructor Description DefaultEngineMetricCollector()
-
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.
-
-
-
Field Detail
-
executedDecisionInstances
protected AtomicLong executedDecisionInstances
-
executedDecisionElements
protected AtomicLong executedDecisionElements
-
-
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
-
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.
-
-