Package org.apache.hadoop.hbase
Class TestPerformanceEvaluation.PESampleTestImpl
java.lang.Object
org.apache.hadoop.hbase.TestPerformanceEvaluation.PESampleTestImpl
- Enclosing class:
- TestPerformanceEvaluation
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.conf.Configuration
protected org.apache.hadoop.hbase.client.Connection
protected com.codahale.metrics.Histogram
protected final org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions
protected final Random
protected final org.apache.hadoop.hbase.PerformanceEvaluation.Status
-
Constructor Summary
ConstructorDescriptionPESampleTestImpl
(org.apache.hadoop.hbase.client.Connection con, org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions options, org.apache.hadoop.hbase.PerformanceEvaluation.Status status) -
Method Summary
Modifier and TypeMethodDescription(package private) String
generateStatus
(int arg0, int arg1, int arg2) (package private) int
com.codahale.metrics.Histogram
protected int
(package private) int
(package private) int
getValueLength
(Random arg0) (package private) boolean
(package private) void
(package private) void
(package private) long
test()
(package private) boolean
testRow
(int i, long startTime) (package private) void
(package private) void
(package private) void
(package private) void
updateScanMetrics
(org.apache.hadoop.hbase.client.metrics.ScanMetrics arg0) (package private) void
updateValueSize
(int arg0) (package private) void
updateValueSize
(org.apache.hadoop.hbase.client.Result arg0) (package private) void
updateValueSize
(org.apache.hadoop.hbase.client.Result[] arg0) (package private) void
updateValueSize
(org.apache.hadoop.hbase.client.Result[] arg0, long arg1) (package private) void
updateValueSize
(org.apache.hadoop.hbase.client.Result arg0, long arg1)
-
Field Details
-
connection
protected org.apache.hadoop.hbase.client.Connection connection -
rand
-
conf
protected final org.apache.hadoop.conf.Configuration conf -
opts
protected final org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions opts -
status
protected final org.apache.hadoop.hbase.PerformanceEvaluation.Status status -
latencyHistogram
protected com.codahale.metrics.Histogram latencyHistogram
-
-
Constructor Details
-
PESampleTestImpl
PESampleTestImpl(org.apache.hadoop.hbase.client.Connection con, org.apache.hadoop.hbase.PerformanceEvaluation.TestOptions options, org.apache.hadoop.hbase.PerformanceEvaluation.Status status)
-
-
Method Details
-
onStartup
- Throws:
IOException
-
onTakedown
- Throws:
IOException
-
testRow
- Throws:
IOException
InterruptedException
-
getValueLength
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
void updateValueSize(int arg0) -
updateScanMetrics
void updateScanMetrics(org.apache.hadoop.hbase.client.metrics.ScanMetrics arg0) -
generateStatus
-
isRandomValueSize
boolean isRandomValueSize() -
getReportingPeriod
protected int getReportingPeriod() -
getLatencyHistogram
public com.codahale.metrics.Histogram getLatencyHistogram() -
testSetup
- Throws:
IOException
-
testTakedown
- Throws:
IOException
-
test
- Throws:
IOException
InterruptedException
-
getStartRow
int getStartRow() -
getLastRow
int getLastRow() -
testTimed
- Throws:
IOException
InterruptedException
-
getShortLatencyReport
-
getShortValueSizeReport
-