com.yahoo.ycsb.measurements
Class OneMeasurementHistogramCustom
java.lang.Object
com.yahoo.ycsb.measurements.OneMeasurement
com.yahoo.ycsb.measurements.OneMeasurementHistogramCustom
public class OneMeasurementHistogramCustom
- extends OneMeasurement
Take measurements and maintain a histogram of a given metric, such as READ
LATENCY.
- Author:
- cooperb
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUCKETS
public static final int BUCKETS
- See Also:
- Constant Field Values
OneMeasurementHistogramCustom
public OneMeasurementHistogramCustom(java.lang.String name,
java.util.Properties props)
reportReturnCode
public void reportReturnCode(int code)
- Specified by:
reportReturnCode
in class OneMeasurement
measure
public void measure(int latency)
- Specified by:
measure
in class OneMeasurement
exportMeasurements
public void exportMeasurements(MeasurementsExporter exporter)
throws java.io.IOException
- Description copied from class:
OneMeasurement
- Export the current measurements to a suitable format.
- Specified by:
exportMeasurements
in class OneMeasurement
- Parameters:
exporter
- Exporter representing the type of format to write to.
- Throws:
java.io.IOException
- Thrown if the export failed.
getSummary
public java.lang.String getSummary()
- Specified by:
getSummary
in class OneMeasurement
computeTime
public java.lang.String computeTime(int time)
getPercentile
public double getPercentile(int[] data,
double percentile)