org.camunda.bpm.dmn.engine.impl.metrics
Class DefaultEngineMetricCollector

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.metrics.DefaultEngineMetricCollector
All Implemented Interfaces:
DmnDecisionEvaluationListener, DmnDecisionTableEvaluationListener, DmnEngineMetricCollector

public class DefaultEngineMetricCollector
extends Object
implements DmnEngineMetricCollector, DmnDecisionEvaluationListener


Field Summary
protected  AtomicLong executedDecisionElements
           
 
Constructor Summary
DefaultEngineMetricCollector()
           
 
Method Summary
 long clearExecutedDecisionElements()
          Resets the executed decision elements to 0.
 long getExecutedDecisionElements()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executedDecisionElements

protected AtomicLong executedDecisionElements
Constructor Detail

DefaultEngineMetricCollector

public DefaultEngineMetricCollector()
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 interface DmnDecisionTableEvaluationListener
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 interface DmnDecisionEvaluationListener
Parameters:
evaluationEvent - the evaluation event

getExecutedDecisionElements

public long getExecutedDecisionElements()
Specified by:
getExecutedDecisionElements in interface DmnEngineMetricCollector
Returns:
the number of executed decision elements since creation of this engine

clearExecutedDecisionElements

public long clearExecutedDecisionElements()
Description copied from interface: DmnEngineMetricCollector
Resets the executed decision elements to 0.

Specified by:
clearExecutedDecisionElements in interface DmnEngineMetricCollector
Returns:
the number of executed decision elements before resetting.


Copyright © 2017 camunda services GmbH. All rights reserved.