From 07ec5bff7b49a97adfab3f782d46b00e453b7527 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 9 Nov 2010 22:51:06 +0000 Subject: [PATCH] HBASE-3112 Enable and disable of table needs a bit of loving in new master git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1033283 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/client/HBaseAdmin.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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.