@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| Constructor and Description |
|---|
TableFuture(HBaseAdmin admin,
TableName tableName,
java.lang.Long procId) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDescription() |
abstract java.lang.String |
getOperationType() |
protected HTableDescriptor |
getTableDescriptor() |
protected TableName |
getTableName() |
protected V |
postOperationFailure(java.io.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.
|
java.lang.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, postOpeartionFailure, waitForState, waitOperationResultpublic TableFuture(HBaseAdmin admin, TableName tableName, java.lang.Long procId)
public java.lang.String toString()
toString in class java.lang.Objectprotected TableName getTableName()
protected HTableDescriptor getTableDescriptor() throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getOperationType()
protected java.lang.String getDescription()
protected V postOperationResult(V result, long deadlineTs) throws java.io.IOException, java.util.concurrent.TimeoutException
HBaseAdmin.ProcedureFuturepostOperationResult in class HBaseAdmin.ProcedureFuture<V>result - the result of the proceduredeadlineTs - the timestamp after which this method should throw a TimeoutExceptionjava.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected V postOperationFailure(java.io.IOException exception, long deadlineTs) throws java.io.IOException, java.util.concurrent.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 TimeoutExceptionjava.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected void waitForTableEnabled(long deadlineTs)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected void waitForTableDisabled(long deadlineTs)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected void waitTableNotFound(long deadlineTs)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected void waitForSchemaUpdate(long deadlineTs)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutExceptionprotected void waitForAllRegionsOnline(long deadlineTs,
byte[][] splitKeys)
throws java.io.IOException,
java.util.concurrent.TimeoutException
java.io.IOExceptionjava.util.concurrent.TimeoutException