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 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
(long arg0, long arg1, long arg2) (package private) long
com.codahale.metrics.Histogram
protected long
(package private) long
(package private) int
(package private) boolean
(package private) void
(package private) void
(package private) long
test()
(package private) boolean
testRow
(long 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 -
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
int 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 long getReportingPeriod() -
getLatencyHistogram
public com.codahale.metrics.Histogram getLatencyHistogram() -
testSetup
- Throws:
IOException
-
testTakedown
- Throws:
IOException
-
test
- Throws:
IOException
InterruptedException
-
getStartRow
long getStartRow() -
getLastRow
long getLastRow() -
testTimed
- Throws:
IOException
InterruptedException
-
getShortLatencyReport
-
getShortValueSizeReport
-