@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.WaitForStateCallableprocId| Constructor and Description |
|---|
TableFuture(HBaseAdmin admin,
TableName tableName,
Long procId) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDescription()
Returns a description of the operation
|
abstract String |
getOperationType()
Returns the operation type like CREATE, DELETE, DISABLE etc.
|
protected TableDescriptor |
getTableDescriptor()
Returns the table descriptor
|
protected TableName |
getTableName()
Returns the table name
|
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, waitOperationResultpublic TableFuture(HBaseAdmin admin, TableName tableName, Long procId)
protected TableName getTableName()
protected TableDescriptor getTableDescriptor() throws IOException
IOExceptionpublic abstract String getOperationType()
protected String getDescription()
protected V postOperationResult(V result, long deadlineTs) throws IOException, TimeoutException
HBaseAdmin.ProcedureFuturepostOperationResult in class HBaseAdmin.ProcedureFuture<V>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
HBaseAdmin.ProcedureFuturepostOperationFailure in class HBaseAdmin.ProcedureFuture<V>exception - the exception got from fetching the resultdeadlineTs - the timestamp after which this method should throw a TimeoutExceptionIOExceptionTimeoutExceptionprotected void waitForTableEnabled(long deadlineTs)
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionprotected void waitForTableDisabled(long deadlineTs)
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionprotected void waitTableNotFound(long deadlineTs)
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionprotected void waitForSchemaUpdate(long deadlineTs)
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionprotected void waitForAllRegionsOnline(long deadlineTs,
byte[][] splitKeys)
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.