private static class HBaseAdmin.CreateTableFuture extends HBaseAdmin.ProcedureFuture<Void>
HBaseAdmin.ProcedureFuture.WaitForStateCallable
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
desc |
private byte[][] |
splitKeys |
Constructor and Description |
---|
HBaseAdmin.CreateTableFuture(HBaseAdmin admin,
HTableDescriptor desc,
byte[][] splitKeys,
org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableResponse response) |
Modifier and Type | Method and Description |
---|---|
protected Void |
postOperationResult(Void result,
long deadlineTs)
Called after the operation is completed and the result fetched.
|
private void |
waitForAllRegionsOnline(long deadlineTs) |
private void |
waitForTableEnabled(long deadlineTs) |
protected Void |
waitOperationResult(long deadlineTs)
Fallback implementation in case the procedure is not supported by the server.
|
abortProcedureResult, cancel, convertResult, get, get, getAdmin, getProcedureResult, isCancelled, isDone, postOpeartionFailure, waitForState
private final HTableDescriptor desc
private final byte[][] splitKeys
public HBaseAdmin.CreateTableFuture(HBaseAdmin admin, HTableDescriptor desc, byte[][] splitKeys, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableResponse response)
protected Void waitOperationResult(long deadlineTs) throws IOException, TimeoutException
HBaseAdmin.ProcedureFuture
waitOperationResult
in class HBaseAdmin.ProcedureFuture<Void>
deadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
protected Void postOperationResult(Void result, long deadlineTs) throws IOException, TimeoutException
HBaseAdmin.ProcedureFuture
postOperationResult
in class HBaseAdmin.ProcedureFuture<Void>
result
- the result of the proceduredeadlineTs
- the timestamp after which this method should throw a TimeoutExceptionIOException
TimeoutException
private void waitForTableEnabled(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
private void waitForAllRegionsOnline(long deadlineTs) throws IOException, TimeoutException
IOException
TimeoutException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.