@InterfaceAudience.Private @InterfaceStability.Evolving public final class ProcedureSyncWait extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProcedureSyncWait.Predicate<T> |
Modifier and Type | Method and Description |
---|---|
protected static MasterQuotaManager |
getMasterQuotaManager(MasterProcedureEnv env) |
protected static List<HRegionInfo> |
getRegionsFromMeta(MasterProcedureEnv env,
TableName tableName) |
static byte[] |
submitAndWaitProcedure(ProcedureExecutor<MasterProcedureEnv> procExec,
Procedure proc) |
static <T> T |
waitFor(MasterProcedureEnv env,
long waitTime,
long waitingTimeForEvents,
String purpose,
ProcedureSyncWait.Predicate<T> predicate) |
static <T> T |
waitFor(MasterProcedureEnv env,
String purpose,
ProcedureSyncWait.Predicate<T> predicate) |
static byte[] |
waitForProcedureToComplete(ProcedureExecutor<MasterProcedureEnv> procExec,
long procId) |
protected static void |
waitMetaRegions(MasterProcedureEnv env) |
protected static void |
waitRegionInTransition(MasterProcedureEnv env,
List<HRegionInfo> regions) |
protected static void |
waitRegionServers(MasterProcedureEnv env) |
public static byte[] submitAndWaitProcedure(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure proc) throws IOException
IOException
public static byte[] waitForProcedureToComplete(ProcedureExecutor<MasterProcedureEnv> procExec, long procId) throws IOException
IOException
public static <T> T waitFor(MasterProcedureEnv env, String purpose, ProcedureSyncWait.Predicate<T> predicate) throws IOException
IOException
public static <T> T waitFor(MasterProcedureEnv env, long waitTime, long waitingTimeForEvents, String purpose, ProcedureSyncWait.Predicate<T> predicate) throws IOException
IOException
protected static void waitMetaRegions(MasterProcedureEnv env) throws IOException
IOException
protected static void waitRegionServers(MasterProcedureEnv env) throws IOException
IOException
protected static List<HRegionInfo> getRegionsFromMeta(MasterProcedureEnv env, TableName tableName) throws IOException
IOException
protected static void waitRegionInTransition(MasterProcedureEnv env, List<HRegionInfo> regions) throws IOException, CoordinatedStateException
IOException
CoordinatedStateException
protected static MasterQuotaManager getMasterQuotaManager(MasterProcedureEnv env) throws IOException
IOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.