@InterfaceAudience.Private @InterfaceStability.Evolving protected static class HBaseAdmin.ProcedureFuture<V> extends Object implements Future<V>
| Modifier and Type | Class and Description | 
|---|---|
protected static interface  | 
HBaseAdmin.ProcedureFuture.WaitForStateCallable  | 
| Constructor and Description | 
|---|
ProcedureFuture(HBaseAdmin admin,
               Long procId)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected MasterProtos.AbortProcedureResponse | 
abortProcedureResult(MasterProtos.AbortProcedureRequest request)  | 
boolean | 
cancel(boolean mayInterruptIfRunning)  | 
protected V | 
convertResult(MasterProtos.GetProcedureResultResponse response)
Convert the procedure result response to a specified type. 
 | 
V | 
get()  | 
V | 
get(long timeout,
   TimeUnit unit)  | 
protected HBaseAdmin | 
getAdmin()  | 
protected MasterProtos.GetProcedureResultResponse | 
getProcedureResult(MasterProtos.GetProcedureResultRequest request)  | 
boolean | 
isCancelled()  | 
boolean | 
isDone()  | 
protected V | 
postOpeartionFailure(IOException exception,
                    long deadlineTs)
Called after the operation is terminated with a failure. 
 | 
protected V | 
postOperationFailure(IOException exception,
                    long deadlineTs)
Called after the operation is terminated with a failure. 
 | 
protected V | 
postOperationResult(V result,
                   long deadlineTs)
Called after the operation is completed and the result fetched. 
 | 
protected void | 
waitForState(long deadlineTs,
            HBaseAdmin.ProcedureFuture.WaitForStateCallable callable)  | 
protected V | 
waitOperationResult(long deadlineTs)
Fallback implementation in case the procedure is not supported by the server. 
 | 
public ProcedureFuture(HBaseAdmin admin, Long procId)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>protected MasterProtos.AbortProcedureResponse abortProcedureResult(MasterProtos.AbortProcedureRequest request) throws IOException
IOExceptionpublic V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionprotected HBaseAdmin getAdmin()
protected MasterProtos.GetProcedureResultResponse getProcedureResult(MasterProtos.GetProcedureResultRequest request) throws IOException
IOExceptionprotected V convertResult(MasterProtos.GetProcedureResultResponse response) throws IOException
response - the procedure result object to parseIOExceptionprotected V waitOperationResult(long deadlineTs) throws IOException, TimeoutException
deadlineTs - the timestamp after which this method should throw a TimeoutExceptionIOExceptionTimeoutExceptionprotected V postOperationResult(V result, long deadlineTs) throws IOException, TimeoutException
result - the result of the proceduredeadlineTs - the timestamp after which this method should throw a TimeoutExceptionIOExceptionTimeoutExceptionprotected V postOperationFailure(IOException exception, long deadlineTs) throws IOException, TimeoutException
exception - the exception got from fetching the resultdeadlineTs - the timestamp after which this method should throw a TimeoutExceptionIOExceptionTimeoutExceptionprotected V postOpeartionFailure(IOException exception, long deadlineTs) throws IOException, TimeoutException
exception - the exception got from fetching the resultdeadlineTs - the timestamp after which this method should throw a TimeoutExceptionIOExceptionTimeoutExceptionprotected void waitForState(long deadlineTs,
                            HBaseAdmin.ProcedureFuture.WaitForStateCallable callable)
                     throws IOException,
                            TimeoutException
IOExceptionTimeoutException