|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yahoo.ycsb.measurements.Measurements
public class Measurements
Collects latency measurements, and reports them when requested.
Constructor Summary | |
---|---|
Measurements(java.util.Properties props)
Create a new object with the specified properties. |
Method Summary | |
---|---|
void |
exportMeasurements(MeasurementsExporter exporter)
Export the current measurements to a suitable format. |
static Measurements |
getMeasurements()
Return the singleton Measurements object. |
java.lang.String |
getSummary()
Return a one line summary of the measurements. |
void |
measure(java.lang.String operation,
int latency)
Report a single value of a single metric. |
void |
reportReturnCode(java.lang.String operation,
int code)
Report a return code for a single DB operaiton. |
static void |
setProperties(java.util.Properties props)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Measurements(java.util.Properties props)
Method Detail |
---|
public static void setProperties(java.util.Properties props)
public static Measurements getMeasurements()
public void measure(java.lang.String operation, int latency)
public void reportReturnCode(java.lang.String operation, int code)
public void exportMeasurements(MeasurementsExporter exporter) throws java.io.IOException
exporter
- Exporter representing the type of format to write to.
java.io.IOException
- Thrown if the export failed.public java.lang.String getSummary()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |