edu.usc.bg.measurements
Class OpMeasurementTracker

java.lang.Object
  extended by edu.usc.bg.measurements.OpMeasurementTracker

public class OpMeasurementTracker
extends java.lang.Object

Take measurements and maintains min, max, avg for each type of operation for each thread

Author:
barahman

Constructor Summary
OpMeasurementTracker(java.lang.String name, java.io.OutputStream out, double expectedLatency)
           
 
Method Summary
 void closePrinter()
           
 long getMax()
           
 long getMin()
           
 long getNumoperations()
           
 java.lang.String getOpname()
           
 java.util.HashMap<java.lang.Integer,int[]> getReturnCode()
           
 long getSatisfying()
           
 long getTotallatencysum()
           
 long getWindownumoperations()
           
 long getWindowtotallatencysum()
           
 void measure(long latency)
           
 void reportReturnCode(int code)
           
 void resetWindow()
          once the status thread reads the stats it resets this window
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpMeasurementTracker

public OpMeasurementTracker(java.lang.String name,
                            java.io.OutputStream out,
                            double expectedLatency)
Method Detail

getSatisfying

public long getSatisfying()

getNumoperations

public long getNumoperations()

getTotallatencysum

public long getTotallatencysum()

getWindownumoperations

public long getWindownumoperations()

getWindowtotallatencysum

public long getWindowtotallatencysum()

getMin

public long getMin()

getMax

public long getMax()

getOpname

public java.lang.String getOpname()

getReturnCode

public java.util.HashMap<java.lang.Integer,int[]> getReturnCode()

reportReturnCode

public void reportReturnCode(int code)

measure

public void measure(long latency)

resetWindow

public void resetWindow()
once the status thread reads the stats it resets this window


closePrinter

public void closePrinter()