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
This commit is contained in:
Michael Stack 2010-11-09 22:51:06 +00:00
parent 0cb9652dd1
commit 07ec5bff7b
1 changed files with 9 additions and 0 deletions

View File

@ -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.