@InterfaceAudience.Private @InterfaceStability.Evolving protected abstract static class HBaseAdmin.TableFuture<V> extends HBaseAdmin.ProcedureFuture<V>
Modifier and Type | Class and Description |
---|---|
protected class |
HBaseAdmin.TableFuture.TableWaitForStateCallable |
HBaseAdmin.ProcedureFuture.WaitForStateCallable
Modifier and Type | Field and Description |
---|---|
private TableName |
tableName |
procId
Constructor and Description |
---|
TableFuture(HBaseAdmin admin,
TableName tableName,
Long procId) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDescription() |
abstract String |
getOperationType() |
protected TableDescriptor |
getTableDescriptor() |
protected TableName |
getTableName() |
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.
|
String |
toString() |
protected void |
waitForAllRegionsOnline(long deadlineTs,
byte[][] splitKeys) |
protected void |
waitForSchemaUpdate(long deadlineTs) |
protected void |
waitForTableDisabled(long deadlineTs) |
protected void |
waitForTableEnabled(long deadlineTs) |
protected void |
waitTableNotFound(long deadlineTs) |
abortProcedureResult, cancel, convertResult, get, get, getAdmin, getProcedureResult, isCancelled, isDone, waitForState, waitOperationResult
public TableFuture(HBaseAdmin admin, TableName tableName, Long procId)
protected TableName getTableName()
protected TableDescriptor getTableDescriptor() throws IOException
IOException
public abstract String getOperationType()
protected String getDescription()
protected V postOperationResult(V result, long deadlineTs) throws IOException, TimeoutException
HBaseAdmin.ProcedureFuture
postOperationResult
in class HBaseAdmin.ProcedureFuture<V>
result
- the result of the proceduredeadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
protected V postOperationFailure(IOException exception, long deadlineTs) throws IOException, TimeoutException
HBaseAdmin.ProcedureFuture
postOperationFailure
in class HBaseAdmin.ProcedureFuture<V>
exception
- the exception got from fetching the resultdeadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
protected void waitForTableEnabled(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
protected void waitForTableDisabled(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
protected void waitTableNotFound(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
protected void waitForSchemaUpdate(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
protected void waitForAllRegionsOnline(long deadlineTs, byte[][] splitKeys) throws IOException, TimeoutException
IOException
TimeoutException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.