Package org.apache.hadoop.hbase.rest
Class PerformanceEvaluation.Test
java.lang.Object
org.apache.hadoop.hbase.rest.PerformanceEvaluation.Test
- Direct Known Subclasses:
PerformanceEvaluation.BufferedMutatorTest
,PerformanceEvaluation.TableTest
- Enclosing class:
- PerformanceEvaluation
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configuration
protected org.apache.hadoop.hbase.client.Connection
protected int
protected final int
protected final Random
private static final Random
protected final int
private final PerformanceEvaluation.Status
protected org.apache.hadoop.hbase.TableName
protected final int
protected boolean
protected boolean
-
Constructor Summary
ConstructorDescriptionTest
(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateStatus
(int sr, int i, int lr) protected int
private static long
(package private) long
test()
Run test(package private) abstract void
testRow
(int i) Test for individual row.(package private) abstract void
(package private) abstract void
(package private) void
Provides an extension point for tests that don't want a per row invocation.
-
Field Details
-
randomSeed
-
rand
-
startRow
-
perClientRunRows
-
totalRows
-
status
-
tableName
-
conf
-
writeToWAL
-
useTags
-
noOfTags
-
connection
-
-
Constructor Details
-
Test
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.
-
-
Method Details
-
nextRandomSeed
-
generateStatus
-
getReportingPeriod
-
testTakedown
- Throws:
IOException
-
test
Run test- Returns:
- Elapsed time.
- Throws:
IOException
- if something in the test fails
-
testSetup
- Throws:
IOException
-
testTimed
Provides an extension point for tests that don't want a per row invocation.- Throws:
IOException
-
testRow
Test for individual row.- Parameters:
i
- Row index.- Throws:
IOException
-