@InterfaceAudience.Private @InterfaceStability.Evolving public final class ProcedureSyncWait extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProcedureSyncWait.Predicate<T> |
public static Future<byte[]> submitProcedure(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<MasterProcedureEnv> proc)
public static byte[] submitAndWaitProcedure(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<MasterProcedureEnv> proc) throws IOException
IOException
public static byte[] waitForProcedureToCompleteIOE(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<?> proc, long timeout) throws IOException
IOException
public static byte[] waitForProcedureToComplete(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<?> proc, long timeout) 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 waitRegionInTransition(MasterProcedureEnv env, List<RegionInfo> regions) throws IOException
IOException
protected static MasterQuotaManager getMasterQuotaManager(MasterProcedureEnv env) throws IOException
IOException
Copyright © 2007–2019 Cloudera. All rights reserved.