diff --git a/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java index 12d1a61a065..d0ca62ce73d 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java @@ -473,6 +473,11 @@ public class HBaseAdmin implements Abortable { LOG.info("Enabled table " + Bytes.toString(tableName)); } + public void enableTableAsync(final String tableName) + throws IOException { + enableTableAsync(Bytes.toBytes(tableName)); + } + /** * Brings a table on-line (enables it). Method returns immediately though * enable of table may take some time to complete, especially if the table @@ -494,6 +499,10 @@ public class HBaseAdmin implements Abortable { LOG.info("Started enable of " + Bytes.toString(tableName)); } + public void disableTableAsync(final String tableName) throws IOException { + disableTableAsync(Bytes.toBytes(tableName)); + } + /** * Starts the disable of a table. If it is being served, the master * will tell the servers to stop serving it. This method returns immediately.