public class MasterProcedureSchedulerPerformanceEvaluation extends org.apache.hadoop.hbase.util.AbstractHBaseTool
| Modifier and Type | Class and Description |
|---|---|
private class |
MasterProcedureSchedulerPerformanceEvaluation.AddProcsWorker |
private class |
MasterProcedureSchedulerPerformanceEvaluation.PollAndLockWorker |
private static interface |
MasterProcedureSchedulerPerformanceEvaluation.ProcedureFactory |
private class |
MasterProcedureSchedulerPerformanceEvaluation.RegionProcedure |
private class |
MasterProcedureSchedulerPerformanceEvaluation.RegionProcedureFactory |
private class |
MasterProcedureSchedulerPerformanceEvaluation.TableProcedure |
private class |
MasterProcedureSchedulerPerformanceEvaluation.TableProcedureFactory |
| Modifier and Type | Field and Description |
|---|---|
private AtomicLong |
completed |
static int |
DEFAULT_NUM_OPERATIONS |
static int |
DEFAULT_NUM_TABLES |
static int |
DEFAULT_NUM_THREADS |
static String |
DEFAULT_OPS_TYPE |
static int |
DEFAULT_REGIONS_PER_TABLE |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_OPERATIONS_OPTION |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_TABLES_OPTION |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_THREADS_OPTION |
private int |
numOps |
private int |
numTables |
private int |
numThreads |
(package private) MasterProcedureSchedulerPerformanceEvaluation.ProcedureFactory[] |
ops |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
OPS_TYPE_OPTION |
private String |
opsType |
private org.apache.hadoop.hbase.master.procedure.MasterProcedureScheduler |
procedureScheduler |
private AtomicLong |
procIds
WORKERS
|
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
REGIONS_PER_TABLE_OPTION |
private int |
regionsPerTable |
protected static HBaseTestingUtility |
UTIL |
private AtomicLong |
yield |
| Constructor and Description |
|---|
MasterProcedureSchedulerPerformanceEvaluation() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions() |
protected int |
doWork() |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
(package private) long |
runThreads(Thread[] threads)
Starts the threads and waits for them to finish.
|
private void |
setupOperations() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprotected static final HBaseTestingUtility UTIL
public static final int DEFAULT_NUM_TABLES
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_TABLES_OPTION
public static final int DEFAULT_REGIONS_PER_TABLE
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option REGIONS_PER_TABLE_OPTION
public static final int DEFAULT_NUM_OPERATIONS
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_OPERATIONS_OPTION
public static final int DEFAULT_NUM_THREADS
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_THREADS_OPTION
public static final String DEFAULT_OPS_TYPE
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option OPS_TYPE_OPTION
private int numTables
private int regionsPerTable
private int numOps
private int numThreads
private org.apache.hadoop.hbase.master.procedure.MasterProcedureScheduler procedureScheduler
private final AtomicLong procIds
private final AtomicLong yield
private final AtomicLong completed
public MasterProcedureSchedulerPerformanceEvaluation()
private void setupOperations() throws Exception
Exceptionprotected void addOptions()
addOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToolprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class org.apache.hadoop.hbase.util.AbstractHBaseToollong runThreads(Thread[] threads) throws Exception
Exceptionprotected int doWork() throws Exception
doWork in class org.apache.hadoop.hbase.util.AbstractHBaseToolExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.