public abstract class ProcedureStorePerformanceEvaluation<T extends org.apache.hadoop.hbase.procedure2.store.ProcedureStore> extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Modifier and Type | Class and Description |
---|---|
private class |
ProcedureStorePerformanceEvaluation.Worker
Callable to generate load for wal by inserting/deleting/updating procedures.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_PROCS |
static int |
DEFAULT_NUM_THREADS |
static String |
DEFAULT_OUTPUT_PATH |
static int |
DEFAULT_STATE_SIZE |
static String |
DEFAULT_SYNC_OPTION |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_PROCS_OPTION |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_THREADS_OPTION |
protected long |
numProcs |
protected int |
numThreads |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
OUTPUT_PATH_OPTION |
protected String |
outputPath |
private AtomicLong |
procIds
|
protected static byte[] |
SERIALIZED_STATE |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
STATE_SIZE_OPTION |
protected int |
stateSize |
protected T |
store |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
SYNC_OPTION |
protected String |
syncType |
private static int |
WORKER_THREADS_TIMEOUT_SEC |
private AtomicBoolean |
workersFailed |
Constructor and Description |
---|
ProcedureStorePerformanceEvaluation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions() |
protected abstract T |
createProcedureStore(org.apache.hadoop.fs.Path storeDir) |
protected int |
doWork() |
protected void |
postStop(T store) |
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 |
setUpProcedureStore() |
private void |
tearDownProcedureStore() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
public static String DEFAULT_OUTPUT_PATH
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option OUTPUT_PATH_OPTION
public static int DEFAULT_NUM_THREADS
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_THREADS_OPTION
public static int DEFAULT_NUM_PROCS
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_PROCS_OPTION
public static int DEFAULT_STATE_SIZE
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option STATE_SIZE_OPTION
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option SYNC_OPTION
public static String DEFAULT_SYNC_OPTION
protected String outputPath
protected int numThreads
protected long numProcs
protected int stateSize
protected static byte[] SERIALIZED_STATE
private AtomicLong procIds
private AtomicBoolean workersFailed
private static final int WORKER_THREADS_TIMEOUT_SEC
public ProcedureStorePerformanceEvaluation()
protected void addOptions()
addOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
private void setUpProcedureStore() throws IOException
IOException
protected abstract T createProcedureStore(org.apache.hadoop.fs.Path storeDir) throws IOException
IOException
protected void postStop(T store) throws IOException
IOException
private void tearDownProcedureStore()
protected abstract void printRawFormatResult(long timeTakenNs)
protected int doWork() throws Exception
doWork
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
Exception
protected abstract void preWrite(long procId) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.