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
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configurationprotected org.apache.hadoop.hbase.client.Connectionprotected intprotected final intprotected final Randomprivate static final Randomprotected final intprivate final PerformanceEvaluation.Statusprotected org.apache.hadoop.hbase.TableNameprotected final intprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionTest(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 StringgenerateStatus(int sr, int i, int lr) protected intprivate static long(package private) longtest()Run test(package private) abstract voidtestRow(int i) Test for individual row.(package private) abstract void(package private) abstract void(package private) voidProvides 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
-