org.shiftone.jrat.core.jmx.benchmark
Class Benchmark

java.lang.Object
  extended by org.shiftone.jrat.core.jmx.benchmark.Benchmark
All Implemented Interfaces:
BenchmarkMBean

public class Benchmark
extends java.lang.Object
implements BenchmarkMBean

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
Benchmark()
           
 
Method Summary
 double calculateCostPerMethodCallNanos()
           
 java.lang.String calculateCostPerMethodCallNanosText()
           
 long getIterations()
           
 void monitorDoWork()
           
 void setIterations(long iterations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Benchmark

public Benchmark()
Method Detail

monitorDoWork

public void monitorDoWork()

getIterations

public long getIterations()
Specified by:
getIterations in interface BenchmarkMBean

setIterations

public void setIterations(long iterations)
Specified by:
setIterations in interface BenchmarkMBean

calculateCostPerMethodCallNanosText

public java.lang.String calculateCostPerMethodCallNanosText()
Specified by:
calculateCostPerMethodCallNanosText in interface BenchmarkMBean

calculateCostPerMethodCallNanos

public double calculateCostPerMethodCallNanos()
Specified by:
calculateCostPerMethodCallNanos in interface BenchmarkMBean