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 |
private long |
numOfReplyFromReplica |
private long |
numOfReplyOverLatencyThreshold |
protected PerformanceEvaluation.TestOptions |
opts |
protected Random |
rand |
private static Random |
randomSeed |
private com.codahale.metrics.Histogram |
regionsScannedHistogram |
private com.codahale.metrics.Histogram |
remoteRpcCallsHistogram |
private com.codahale.metrics.Histogram |
replicaLatencyHistogram |
private com.codahale.metrics.Histogram |
rpcCallsHistogram |
private PerformanceEvaluation.Status |
status |
private String |
testName |
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) 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()
Returns Subset of the histograms' calculation.
|
String |
getShortValueSizeReport()
Returns Subset of the histograms' calculation.
|
(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 boolean |
testRow(int i,
long startTime)
Test for individual row.
|
(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) |
(package private) void |
updateValueSize(org.apache.hadoop.hbase.client.Result[] rs,
long latency) |
(package private) void |
updateValueSize(org.apache.hadoop.hbase.client.Result r,
long latency) |
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 com.codahale.metrics.Histogram latencyHistogram
private com.codahale.metrics.Histogram replicaLatencyHistogram
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
private long numOfReplyOverLatencyThreshold
private long numOfReplyFromReplica
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[] rs, long latency) throws IOException
IOException
void updateValueSize(org.apache.hadoop.hbase.client.Result r) throws IOException
IOException
void updateValueSize(org.apache.hadoop.hbase.client.Result r, long latency) 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 onStartup() throws IOException
IOException
void testTakedown() throws IOException
IOException
abstract void onTakedown() 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 boolean testRow(int i, long startTime) throws IOException, InterruptedException
i
- Row index.IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.