T - the type of task resultP - the type of task parameterpublic abstract class StressMasterBenchBase<T extends MasterBenchTaskResultBase<P>,P extends MasterBenchBaseParameters> extends AbstractStressBench<T,P>
| Modifier and Type | Class and Description |
|---|---|
protected class |
StressMasterBenchBase.BenchContext |
Benchmark.MethodStatistics, Benchmark.ProfileInput| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.FileSystem[] |
mCachedFs
Cached FS instances.
|
protected FileSystem[] |
mCachedNativeFs
In case the Alluxio Native API is used, use the following instead.
|
protected java.lang.String |
mDirsDir |
protected byte[] |
mFiledata |
protected java.lang.String |
mFilesDir |
protected java.lang.String |
mFixedDir |
protected int[] |
mPathNodeIds |
protected int[] |
mTreeLevelNodeCount |
protected int |
mTreeTotalNodeCount |
mParametersmBaseParameters| Modifier | Constructor and Description |
|---|---|
protected |
StressMasterBenchBase(P parameters)
Creates instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyNativeOperation(FileSystem fs,
Operation operation,
long counter,
org.apache.hadoop.fs.Path basePath,
org.apache.hadoop.fs.Path fixedBasePath,
int fixedCount) |
protected void |
deletePaths(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path basePath) |
protected java.lang.String |
extractHostName(java.lang.String mId) |
protected abstract java.util.concurrent.Callable<java.lang.Void> |
getBenchThread(StressMasterBenchBase.BenchContext context,
int index) |
protected abstract StressMasterBenchBase.BenchContext |
getContext() |
T |
runLocal()
Runs the test locally, in process.
|
run, validateParamscleanup, generateJobConfig, getBenchDescription, mainInternal, parseParameters, prepare, processMethodProfiles, runSingleTaskprotected byte[] mFiledata
protected org.apache.hadoop.fs.FileSystem[] mCachedFs
protected FileSystem[] mCachedNativeFs
protected final java.lang.String mDirsDir
protected final java.lang.String mFilesDir
protected final java.lang.String mFixedDir
protected int[] mPathNodeIds
protected int[] mTreeLevelNodeCount
protected int mTreeTotalNodeCount
protected StressMasterBenchBase(P parameters)
protected abstract StressMasterBenchBase.BenchContext getContext() throws java.io.IOException, AlluxioException
java.io.IOExceptionAlluxioExceptionprotected void deletePaths(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path basePath)
throws java.lang.Exception
java.lang.Exceptionpublic T runLocal() throws java.lang.Exception
BenchmarkrunLocal in class Benchmark<T extends MasterBenchTaskResultBase<P>>java.lang.Exceptionprotected abstract java.util.concurrent.Callable<java.lang.Void> getBenchThread(StressMasterBenchBase.BenchContext context, int index)
protected void applyNativeOperation(FileSystem fs, Operation operation, long counter, org.apache.hadoop.fs.Path basePath, org.apache.hadoop.fs.Path fixedBasePath, int fixedCount) throws java.io.IOException, AlluxioException
java.io.IOExceptionAlluxioExceptionprotected java.lang.String extractHostName(java.lang.String mId)
Copyright © 2024. All Rights Reserved.