Package org.apache.hadoop.hbase
Class PerformanceEvaluation.TestBase
java.lang.Object
org.apache.hadoop.hbase.PerformanceEvaluation.TestBase
- Direct Known Subclasses:
PerformanceEvaluation.AsyncTest,PerformanceEvaluation.Test
- Enclosing class:
- PerformanceEvaluation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.codahale.metrics.Histogramprivate com.codahale.metrics.Histogramprotected final org.apache.hadoop.conf.Configurationprivate final intprivate com.codahale.metrics.Histogramprivate com.codahale.metrics.Histogramprivate longprivate longprotected final PerformanceEvaluation.TestOptionsprotected final Randomprivate static final Randomprivate com.codahale.metrics.Histogramprivate com.codahale.metrics.Histogramprivate com.codahale.metrics.Histogramprivate com.codahale.metrics.Histogramprivate final PerformanceEvaluation.Statusprivate Stringprivate com.codahale.metrics.Histogramprivate RandomDistribution.Zipf -
Constructor Summary
ConstructorsConstructorDescriptionTestBase(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. -
Method Summary
Modifier and TypeMethodDescription(package private) StringgenerateStatus(int sr, int i, int lr) (package private) intcom.codahale.metrics.HistogramPopulated by testTakedown.protected intReturns Subset of the histograms' calculation.Returns Subset of the histograms' calculation.(package private) int(package private) int(package private) booleanprivate static long(package private) abstract void(package private) abstract void(package private) longtest()(package private) abstract booleantestRow(int i, long startTime) Test for individual row.(package private) void(package private) void(package private) voidProvides an extension point for tests that don't want a per row invocation.(package private) voidupdateScanMetrics(org.apache.hadoop.hbase.client.metrics.ScanMetrics metrics) (package private) voidupdateValueSize(int valueSize) (package private) voidupdateValueSize(org.apache.hadoop.hbase.client.Result r) (package private) voidupdateValueSize(org.apache.hadoop.hbase.client.Result[] rs) (package private) voidupdateValueSize(org.apache.hadoop.hbase.client.Result[] rs, long latency) (package private) voidupdateValueSize(org.apache.hadoop.hbase.client.Result r, long latency)
-
Field Details
-
randomSeed
-
everyN
-
rand
-
conf
-
opts
-
status
-
testName
-
latencyHistogram
-
replicaLatencyHistogram
-
valueSizeHistogram
-
rpcCallsHistogram
-
remoteRpcCallsHistogram
-
millisBetweenNextHistogram
-
regionsScannedHistogram
-
bytesInResultsHistogram
-
bytesInRemoteResultsHistogram
-
zipf
-
numOfReplyOverLatencyThreshold
-
numOfReplyFromReplica
-
-
Constructor Details
-
TestBase
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.
-
-
Method Details
-
nextRandomSeed
-
getValueLength
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
- Throws:
IOException
-
updateValueSize
-
updateScanMetrics
-
generateStatus
-
isRandomValueSize
boolean isRandomValueSize() -
getReportingPeriod
-
getLatencyHistogram
Populated by testTakedown. Only implemented by RandomReadTest at the moment. -
testSetup
- Throws:
IOException
-
onStartup
- Throws:
IOException
-
testTakedown
- Throws:
IOException
-
onTakedown
- Throws:
IOException
-
test
- Throws:
IOExceptionInterruptedException
-
getStartRow
int getStartRow() -
getLastRow
int getLastRow() -
testTimed
Provides an extension point for tests that don't want a per row invocation.- Throws:
IOExceptionInterruptedException
-
getShortLatencyReport
Returns Subset of the histograms' calculation. -
getShortValueSizeReport
Returns Subset of the histograms' calculation. -
testRow
Test for individual row.- Parameters:
i- Row index.- Returns:
- true if the row was sent to server and need to record metrics. False if not, multiGet and multiPut e.g., the rows are sent to server only if enough gets/puts are gathered.
- Throws:
IOExceptionInterruptedException
-