public class MasterProcedureTestingUtility extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MasterProcedureTestingUtility.InjectAbortOnLoadListener  | 
| Modifier and Type | Method and Description | 
|---|---|
static HTableDescriptor | 
createHTD(TableName tableName,
         String... family)  | 
static HRegionInfo[] | 
createTable(ProcedureExecutor<MasterProcedureEnv> procExec,
           TableName tableName,
           byte[][] splitKeys,
           String... family)  | 
static long | 
generateNonce(HMaster master)  | 
static long | 
generateNonceGroup(HMaster master)  | 
static void | 
loadData(Connection connection,
        TableName tableName,
        int rows,
        byte[][] splitKeys,
        String... sfamilies)  | 
static <TState> void | 
testRecoveryAndDoubleExecution(ProcedureExecutor<MasterProcedureEnv> procExec,
                              long procId,
                              int numSteps,
                              TState[] states)  | 
static <TState> void | 
testRollbackAndDoubleExecution(ProcedureExecutor<MasterProcedureEnv> procExec,
                              long procId,
                              int lastStep,
                              TState[] states)  | 
static <TState> void | 
testRollbackAndDoubleExecutionAfterPONR(ProcedureExecutor<MasterProcedureEnv> procExec,
                                       long procId,
                                       int lastStep,
                                       TState[] states)  | 
static <TState> void | 
testRollbackRetriableFailure(ProcedureExecutor<MasterProcedureEnv> procExec,
                            long procId,
                            int lastStep,
                            TState[] states)  | 
static void | 
validateColumnFamilyAddition(HMaster master,
                            TableName tableName,
                            String family)  | 
static void | 
validateColumnFamilyDeletion(HMaster master,
                            TableName tableName,
                            String family)  | 
static void | 
validateColumnFamilyModification(HMaster master,
                                TableName tableName,
                                String family,
                                HColumnDescriptor columnDescriptor)  | 
static void | 
validateTableCreation(HMaster master,
                     TableName tableName,
                     HRegionInfo[] regions,
                     boolean hasFamilyDirs,
                     String... family)  | 
static void | 
validateTableCreation(HMaster master,
                     TableName tableName,
                     HRegionInfo[] regions,
                     String... family)  | 
static void | 
validateTableDeletion(HMaster master,
                     TableName tableName,
                     HRegionInfo[] regions,
                     String... family)  | 
static void | 
validateTableIsDisabled(HMaster master,
                       TableName tableName)  | 
static void | 
validateTableIsEnabled(HMaster master,
                      TableName tableName)  | 
public static HTableDescriptor createHTD(TableName tableName, String... family)
public static HRegionInfo[] createTable(ProcedureExecutor<MasterProcedureEnv> procExec, TableName tableName, byte[][] splitKeys, String... family) throws IOException
IOExceptionpublic static void validateTableCreation(HMaster master, TableName tableName, HRegionInfo[] regions, String... family) throws IOException
IOExceptionpublic static void validateTableCreation(HMaster master, TableName tableName, HRegionInfo[] regions, boolean hasFamilyDirs, String... family) throws IOException
IOExceptionpublic static void validateTableDeletion(HMaster master, TableName tableName, HRegionInfo[] regions, String... family) throws IOException
IOExceptionpublic static void validateTableIsEnabled(HMaster master, TableName tableName) throws IOException
IOExceptionpublic static void validateTableIsDisabled(HMaster master, TableName tableName) throws IOException
IOExceptionpublic static <TState> void testRecoveryAndDoubleExecution(ProcedureExecutor<MasterProcedureEnv> procExec, long procId, int numSteps, TState[] states) throws Exception
Exceptionpublic static <TState> void testRollbackAndDoubleExecution(ProcedureExecutor<MasterProcedureEnv> procExec, long procId, int lastStep, TState[] states) throws Exception
Exceptionpublic static <TState> void testRollbackAndDoubleExecutionAfterPONR(ProcedureExecutor<MasterProcedureEnv> procExec, long procId, int lastStep, TState[] states) throws Exception
Exceptionpublic static <TState> void testRollbackRetriableFailure(ProcedureExecutor<MasterProcedureEnv> procExec, long procId, int lastStep, TState[] states) throws Exception
Exceptionpublic static void validateColumnFamilyAddition(HMaster master, TableName tableName, String family) throws IOException
IOExceptionpublic static void validateColumnFamilyDeletion(HMaster master, TableName tableName, String family) throws IOException
IOExceptionpublic static void validateColumnFamilyModification(HMaster master, TableName tableName, String family, HColumnDescriptor columnDescriptor) throws IOException
IOExceptionpublic static void loadData(Connection connection, TableName tableName, int rows, byte[][] splitKeys, String... sfamilies) throws IOException
IOExceptionpublic static long generateNonceGroup(HMaster master)
public static long generateNonce(HMaster master)