abstract static class PerformanceEvaluation.TestBase extends Object
Modifier and Type | Field and Description |
---|---|
private com.codahale.metrics.Histogram |
bytesInRemoteResultsHistogram |
private com.codahale.metrics.Histogram |
bytesInResultsHistogram |
protected org.apache.hadoop.conf.Configuration |
conf |
private int |
everyN |
private com.codahale.metrics.Histogram |
latencyHistogram |
private com.codahale.metrics.Histogram |
millisBetweenNextHistogram |
protected PerformanceEvaluation.TestOptions |
opts |
protected Random |
rand |
private static Random |
randomSeed |
private org.apache.hadoop.hbase.trace.SpanReceiverHost |
receiverHost |
private com.codahale.metrics.Histogram |
regionsScannedHistogram |
private com.codahale.metrics.Histogram |
remoteRpcCallsHistogram |
private com.codahale.metrics.Histogram |
rpcCallsHistogram |
private PerformanceEvaluation.Status |
status |
private String |
testName |
private org.apache.htrace.core.Sampler |
traceSampler |
private com.codahale.metrics.Histogram |
valueSizeHistogram |
private RandomDistribution.Zipf |
zipf |
Constructor and Description |
---|
TestBase(org.apache.hadoop.conf.Configuration conf,
PerformanceEvaluation.TestOptions options,
PerformanceEvaluation.Status status)
Note that all subclasses of this class must provide a public constructor
that has the exact same list of arguments.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
closeConnection() |
(package private) abstract void |
createConnection() |
(package private) String |
generateStatus(int sr,
int i,
int lr) |
(package private) int |
getLastRow() |
com.codahale.metrics.Histogram |
getLatencyHistogram()
Populated by testTakedown.
|
protected int |
getReportingPeriod() |
String |
getShortLatencyReport() |
String |
getShortValueSizeReport() |
(package private) int |
getStartRow() |
(package private) int |
getValueLength(Random r) |
(package private) boolean |
isRandomValueSize() |
private static long |
nextRandomSeed() |
(package private) abstract void |
onStartup() |
(package private) abstract void |
onTakedown() |
(package private) long |
test() |
(package private) abstract void |
testRow(int i) |
(package private) void |
testSetup() |
(package private) void |
testTakedown() |
(package private) void |
testTimed()
Provides an extension point for tests that don't want a per row invocation.
|
(package private) void |
updateScanMetrics(org.apache.hadoop.hbase.client.metrics.ScanMetrics metrics) |
(package private) void |
updateValueSize(int valueSize) |
(package private) void |
updateValueSize(org.apache.hadoop.hbase.client.Result r) |
(package private) void |
updateValueSize(org.apache.hadoop.hbase.client.Result[] rs) |
private static final Random randomSeed
private final int everyN
protected final org.apache.hadoop.conf.Configuration conf
protected final PerformanceEvaluation.TestOptions opts
private final PerformanceEvaluation.Status status
private final org.apache.htrace.core.Sampler traceSampler
private final org.apache.hadoop.hbase.trace.SpanReceiverHost receiverHost
private com.codahale.metrics.Histogram latencyHistogram
private com.codahale.metrics.Histogram valueSizeHistogram
private com.codahale.metrics.Histogram rpcCallsHistogram
private com.codahale.metrics.Histogram remoteRpcCallsHistogram
private com.codahale.metrics.Histogram millisBetweenNextHistogram
private com.codahale.metrics.Histogram regionsScannedHistogram
private com.codahale.metrics.Histogram bytesInResultsHistogram
private com.codahale.metrics.Histogram bytesInRemoteResultsHistogram
private RandomDistribution.Zipf zipf
TestBase(org.apache.hadoop.conf.Configuration conf, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status)
private static long nextRandomSeed()
int getValueLength(Random r)
void updateValueSize(org.apache.hadoop.hbase.client.Result[] rs) throws IOException
IOException
void updateValueSize(org.apache.hadoop.hbase.client.Result r) throws IOException
IOException
void updateValueSize(int valueSize)
void updateScanMetrics(org.apache.hadoop.hbase.client.metrics.ScanMetrics metrics)
String generateStatus(int sr, int i, int lr)
boolean isRandomValueSize()
protected int getReportingPeriod()
public com.codahale.metrics.Histogram getLatencyHistogram()
void testSetup() throws IOException
IOException
abstract void createConnection() throws IOException
IOException
abstract void onStartup() throws IOException
IOException
void testTakedown() throws IOException
IOException
abstract void onTakedown() throws IOException
IOException
abstract void closeConnection() throws IOException
IOException
long test() throws IOException, InterruptedException
IOException
InterruptedException
int getStartRow()
int getLastRow()
void testTimed() throws IOException, InterruptedException
IOException
InterruptedException
public String getShortLatencyReport()
public String getShortValueSizeReport()
abstract void testRow(int i) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.