@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
IOExceptionpublic static byte[] waitForProcedureToCompleteIOE(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<?> proc, long timeout) throws IOException
IOExceptionpublic static byte[] waitForProcedureToComplete(ProcedureExecutor<MasterProcedureEnv> procExec, Procedure<?> proc, long timeout) throws IOException
IOExceptionpublic static <T> T waitFor(MasterProcedureEnv env, String purpose, ProcedureSyncWait.Predicate<T> predicate) throws IOException
IOExceptionpublic static <T> T waitFor(MasterProcedureEnv env, long waitTime, String purpose, ProcedureSyncWait.Predicate<T> predicate) throws IOException
IOExceptionpublic static <T> T waitFor(MasterProcedureEnv env, long waitTime, long waitingTimeForEvents, String purpose, ProcedureSyncWait.Predicate<T> predicate) throws IOException
IOExceptionprotected static void waitMetaRegions(MasterProcedureEnv env) throws IOException
IOExceptionprotected static void waitRegionInTransition(MasterProcedureEnv env, List<RegionInfo> regions) throws IOException
IOExceptionprotected static MasterQuotaManager getMasterQuotaManager(MasterProcedureEnv env) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.