org.camunda.bpm.dmn.engine.impl
Class DmnEngineMetricCollectorImpl

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.DmnEngineMetricCollectorImpl
All Implemented Interfaces:
DmnDecisionTableListener, DmnEngineMetricCollector

public class DmnEngineMetricCollectorImpl
extends Object
implements DmnEngineMetricCollector


Field Summary
protected  AtomicLong executedDecisionElements
           
 
Constructor Summary
DmnEngineMetricCollectorImpl()
           
 
Method Summary
 long clearExecutedDecisionElements()
          Resets the executed decision elements to 0.
 long getExecutedDecisionElements()
           
 void notify(DmnDecisionTable decisionTable, DmnDecisionTableResult decisionTableResult)
          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

DmnEngineMetricCollectorImpl

public DmnEngineMetricCollectorImpl()
Method Detail

notify

public void notify(DmnDecisionTable decisionTable,
                   DmnDecisionTableResult decisionTableResult)
Description copied from interface: DmnDecisionTableListener
Will be called after a decision table was evaluated.

Specified by:
notify in interface DmnDecisionTableListener
Parameters:
decisionTable - the evaluated decision table
decisionTableResult - the result of the decision table evaluation

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 © 2015 camunda services GmbH. All rights reserved.