abstract static class PerformanceEvaluation.Test extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.hbase.client.Connection |
connection |
protected int |
noOfTags |
protected int |
perClientRunRows |
protected Random |
rand |
private static Random |
randomSeed |
protected int |
startRow |
private PerformanceEvaluation.Status |
status |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected int |
totalRows |
protected boolean |
useTags |
protected boolean |
writeToWAL |
Constructor and Description |
---|
Test(org.apache.hadoop.conf.Configuration conf,
PerformanceEvaluation.TestOptions options,
PerformanceEvaluation.Status status)
Note that all subclasses of this class must provide a public contructor that has the exact
same list of arguments.
|
Modifier and Type | Method and Description |
---|---|
protected String |
generateStatus(int sr,
int i,
int lr) |
protected int |
getReportingPeriod() |
private static long |
nextRandomSeed() |
(package private) long |
test()
Run test
|
(package private) abstract void |
testRow(int i)
Test for individual row.
|
(package private) abstract void |
testSetup() |
(package private) abstract void |
testTakedown() |
(package private) void |
testTimed()
Provides an extension point for tests that don't want a per row invocation.
|
private static final Random randomSeed
protected final int startRow
protected final int perClientRunRows
protected final int totalRows
private final PerformanceEvaluation.Status status
protected org.apache.hadoop.hbase.TableName tableName
protected volatile org.apache.hadoop.conf.Configuration conf
protected boolean writeToWAL
protected boolean useTags
protected int noOfTags
protected org.apache.hadoop.hbase.client.Connection connection
Test(org.apache.hadoop.conf.Configuration conf, PerformanceEvaluation.TestOptions options, PerformanceEvaluation.Status status)
private static long nextRandomSeed()
protected String generateStatus(int sr, int i, int lr)
protected int getReportingPeriod()
abstract void testTakedown() throws IOException
IOException
long test() throws IOException
IOException
- if something in the test failsabstract void testSetup() throws IOException
IOException
void testTimed() throws IOException
IOException
abstract void testRow(int i) throws IOException
i
- Row index.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.