org.databene.contiperf
Class PerformanceTracker

java.lang.Object
  extended by org.databene.contiperf.util.InvokerProxy
      extended by org.databene.contiperf.PerformanceTracker
All Implemented Interfaces:
Invoker

public class PerformanceTracker
extends InvokerProxy

InvokerProxy that provides performance tracking features.

Created: 22.10.2009 16:36:43

Since:
1.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.contiperf.util.InvokerProxy
target
 
Constructor Summary
PerformanceTracker(Invoker target, PerformanceRequirement requirement, boolean cancelOnViolation, ExecutionLogger logger)
           
PerformanceTracker(Invoker target, PerformanceRequirement requirement, ExecutionLogger logger)
           
 
Method Summary
 LatencyCounter getCounter()
           
 java.lang.Object invoke(java.lang.Object[] args)
           
 void setExecutionLogger(ExecutionLogger logger)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.databene.contiperf.util.InvokerProxy
getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceTracker

public PerformanceTracker(Invoker target,
                          PerformanceRequirement requirement,
                          ExecutionLogger logger)

PerformanceTracker

public PerformanceTracker(Invoker target,
                          PerformanceRequirement requirement,
                          boolean cancelOnViolation,
                          ExecutionLogger logger)
Method Detail

setExecutionLogger

public void setExecutionLogger(ExecutionLogger logger)

getCounter

public LatencyCounter getCounter()

start

public void start()

invoke

public java.lang.Object invoke(java.lang.Object[] args)
                        throws java.lang.Exception
Specified by:
invoke in interface Invoker
Overrides:
invoke in class InvokerProxy
Throws:
java.lang.Exception

stop

public void stop()


Copyright © 2010. All Rights Reserved.