use of org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.EnableTableResponse in project hbase by apache.
the class HBaseAdmin method enableTableAsync.
@Override
public Future<Void> enableTableAsync(final TableName tableName) throws IOException {
TableName.isLegalFullyQualifiedTableName(tableName.getName());
EnableTableResponse response = executeCallable(new MasterCallable<EnableTableResponse>(getConnection(), getRpcControllerFactory()) {
@Override
protected EnableTableResponse rpcCall() throws Exception {
setPriority(tableName);
LOG.info("Started enable of " + tableName);
EnableTableRequest req = RequestConverter.buildEnableTableRequest(tableName, ng.getNonceGroup(), ng.newNonce());
return master.enableTable(getRpcController(), req);
}
});
return new EnableTableFuture(this, tableName, response);
}
Aggregations