public class DefaultEngineMetricCollector extends Object implements DmnEngineMetricCollector, DmnDecisionEvaluationListener
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
executedDecisionElements |
protected AtomicLong |
executedDecisionInstances |
Constructor and Description |
---|
DefaultEngineMetricCollector() |
Modifier and Type | Method and 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 AtomicLong executedDecisionInstances
protected AtomicLong executedDecisionElements
public void notify(DmnDecisionTableEvaluationEvent evaluationEvent)
DmnDecisionTableEvaluationListener
notify
in interface DmnDecisionTableEvaluationListener
evaluationEvent
- the evaluation eventpublic void notify(DmnDecisionEvaluationEvent evaluationEvent)
DmnDecisionEvaluationListener
notify
in interface DmnDecisionEvaluationListener
evaluationEvent
- the evaluation eventpublic long getExecutedDecisionInstances()
getExecutedDecisionInstances
in interface DmnEngineMetricCollector
public long getExecutedDecisionElements()
getExecutedDecisionElements
in interface DmnEngineMetricCollector
public long clearExecutedDecisionInstances()
DmnEngineMetricCollector
clearExecutedDecisionInstances
in interface DmnEngineMetricCollector
public long clearExecutedDecisionElements()
DmnEngineMetricCollector
clearExecutedDecisionElements
in interface DmnEngineMetricCollector
Copyright © 2021. All rights reserved.