com.yahoo.ycsb.measurements
Class OneMeasurement
java.lang.Object
com.yahoo.ycsb.measurements.OneMeasurement
- Direct Known Subclasses:
- OneMeasurementHistogram, OneMeasurementHistogramCustom, OneMeasurementTimeSeries
public abstract class OneMeasurement
- extends java.lang.Object
A single measured metric (such as READ LATENCY)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneMeasurement
public OneMeasurement(java.lang.String _name)
- Parameters:
_name
-
getName
public java.lang.String getName()
reportReturnCode
public abstract void reportReturnCode(int code)
measure
public abstract void measure(int latency)
getSummary
public abstract java.lang.String getSummary()
exportMeasurements
public abstract void exportMeasurements(MeasurementsExporter exporter)
throws java.io.IOException
- Export the current measurements to a suitable format.
- Parameters:
exporter
- Exporter representing the type of format to write to.
- Throws:
java.io.IOException
- Thrown if the export failed.