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