Class ProcedureStorePerformanceEvaluation<T extends org.apache.hadoop.hbase.procedure2.store.ProcedureStore>
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.procedure2.store.ProcedureStorePerformanceEvaluation<T>
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
- Direct Known Subclasses:
ProcedureWALPerformanceEvaluation
,RegionProcedureStorePerformanceEvaluation
public abstract class ProcedureStorePerformanceEvaluation<T extends org.apache.hadoop.hbase.procedure2.store.ProcedureStore>
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Base class for testing procedure store performance.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate final class
Callable to generate load for wal by inserting/deleting/updating procedures.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static String
static int
static String
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
protected long
protected int
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
protected String
private AtomicLong
Used byProcedureStorePerformanceEvaluation<T extends org.apache.hadoop.hbase.procedure2.store.ProcedureStore>.Worker
.protected static byte[]
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
protected int
protected T
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
protected String
private static final int
private AtomicBoolean
Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract T
createProcedureStore
(org.apache.hadoop.fs.Path storeDir) protected int
doWork()
protected void
protected abstract void
preWrite
(long procId) protected abstract void
printRawFormatResult
(long timeTakenNs) protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) private void
private void
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
DEFAULT_OUTPUT_PATH
-
OUTPUT_PATH_OPTION
-
DEFAULT_NUM_THREADS
-
NUM_THREADS_OPTION
-
DEFAULT_NUM_PROCS
-
NUM_PROCS_OPTION
-
DEFAULT_STATE_SIZE
-
STATE_SIZE_OPTION
-
SYNC_OPTION
-
DEFAULT_SYNC_OPTION
-
outputPath
-
numThreads
-
numProcs
-
syncType
-
stateSize
-
SERIALIZED_STATE
-
store
-
procIds
Used byProcedureStorePerformanceEvaluation<T extends org.apache.hadoop.hbase.procedure2.store.ProcedureStore>.Worker
. -
workersFailed
-
WORKER_THREADS_TIMEOUT_SEC
- See Also:
-
-
Constructor Details
-
ProcedureStorePerformanceEvaluation
public ProcedureStorePerformanceEvaluation()
-
-
Method Details
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
setUpProcedureStore
- Throws:
IOException
-
createProcedureStore
- Throws:
IOException
-
postStop
- Throws:
IOException
-
tearDownProcedureStore
-
printRawFormatResult
-
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-
preWrite
- Throws:
IOException
-