@InterfaceAudience.Private @InterfaceStability.Evolving protected static class HBaseAdmin.ProcedureFuture<V> extends Object implements Future<V>
限定符和类型 | 类和说明 |
---|---|
protected static interface |
HBaseAdmin.ProcedureFuture.WaitForStateCallable |
构造器和说明 |
---|
HBaseAdmin.ProcedureFuture(HBaseAdmin admin,
Long procId) |
HBaseAdmin.ProcedureFuture(HBaseAdmin admin,
Long procId,
boolean waitForOpResult) |
public HBaseAdmin.ProcedureFuture(HBaseAdmin admin, Long procId)
public HBaseAdmin.ProcedureFuture(HBaseAdmin admin, Long procId, boolean waitForOpResult)
public boolean isCancelled()
isCancelled
在接口中 Future<V>
protected org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AbortProcedureResponse abortProcedureResult(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.AbortProcedureRequest request) throws IOException
IOException
public V get() throws InterruptedException, ExecutionException
get
在接口中 Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
在接口中 Future<V>
InterruptedException
ExecutionException
TimeoutException
protected HBaseAdmin getAdmin()
protected org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetProcedureResultResponse getProcedureResult(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetProcedureResultRequest request) throws IOException
IOException
protected V convertResult(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.GetProcedureResultResponse response) throws IOException
response
- the procedure result object to parseIOException
protected V waitOperationResult(long deadlineTs) throws IOException, TimeoutException
deadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
protected V postOperationResult(V result, long deadlineTs) throws IOException, TimeoutException
result
- the result of the proceduredeadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
protected 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 TimeoutExceptionIOException
TimeoutException
protected void waitForState(long deadlineTs, HBaseAdmin.ProcedureFuture.WaitForStateCallable callable) throws IOException, TimeoutException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.