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

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

public class DmnEngineMetricCollectorWrapper
extends Object
implements DmnEngineMetricCollector, DmnDecisionEvaluationListener


Field Summary
protected  DmnEngineMetricCollector collector
           
 
Constructor Summary
DmnEngineMetricCollectorWrapper(DmnEngineMetricCollector collector)
           
 
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.
protected  void notifyCollector(DmnDecisionLogicEvaluationEvent evaluationEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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

notifyCollector

protected void notifyCollector(DmnDecisionLogicEvaluationEvent evaluationEvent)

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.