public class ProcedureWALLoaderPerformanceEvaluation extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Modifier and Type | Class and Description |
---|---|
private static class |
ProcedureWALLoaderPerformanceEvaluation.LoadCounter |
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_DELETE_PROCS_FRACTION |
static int |
DEFAULT_NUM_PROCS |
static int |
DEFAULT_NUM_WALS |
static int |
DEFAULT_STATE_SIZE |
static int |
DEFAULT_UPDATES_PER_PROC |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
DELETE_PROCS_FRACTION_OPTION |
double |
deleteProcsFraction |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_PROCS_OPTION |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_WALS_OPTION |
int |
numProcs |
int |
numWals |
(package private) static byte[] |
serializedState |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
STATE_SIZE_OPTION |
private org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore |
store |
static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
UPDATES_PER_PROC_OPTION |
int |
updatesPerProc |
protected static HBaseCommonTestingUtility |
UTIL |
Constructor and Description |
---|
ProcedureWALLoaderPerformanceEvaluation() |
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) |
private void |
setupConf() |
void |
setUpProcedureStore() |
private List<Integer> |
shuffleProcWriteSequence() |
private void |
storeRestart(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader loader) |
void |
tearDownProcedureStore() |
private void |
writeWals() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
protected static final HBaseCommonTestingUtility UTIL
public static int DEFAULT_NUM_PROCS
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_PROCS_OPTION
public static int DEFAULT_NUM_WALS
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_WALS_OPTION
public static int DEFAULT_STATE_SIZE
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option STATE_SIZE_OPTION
public static int DEFAULT_UPDATES_PER_PROC
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option UPDATES_PER_PROC_OPTION
public static double DEFAULT_DELETE_PROCS_FRACTION
public static org.apache.hbase.thirdparty.org.apache.commons.cli.Option DELETE_PROCS_FRACTION_OPTION
public int numProcs
public int updatesPerProc
public double deleteProcsFraction
public int numWals
private org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore store
static byte[] serializedState
public ProcedureWALLoaderPerformanceEvaluation()
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 setupConf()
public void setUpProcedureStore() throws IOException
IOException
private List<Integer> shuffleProcWriteSequence()
private void writeWals() throws IOException
IOException
private void storeRestart(org.apache.hadoop.hbase.procedure2.store.ProcedureStore.ProcedureLoader loader) throws IOException
IOException
public void tearDownProcedureStore()
protected int doWork()
doWork
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
public static void main(String[] args) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.