HBASE-3717 deprecate HTable isTableEnabled() methods in favor of HBaseAdmin methods

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1087191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-03-31 05:50:43 +00:00
parent 67a3bf92b7
commit 569b5d2335
2 changed files with 8 additions and 0 deletions

View File

@ -108,6 +108,8 @@ Release 0.91.0 - Unreleased
MiniZooKeeperCluster for test writing (Liyin Tang via Stack)
HBASE-3696 isMajorCompaction() check triggers lots of listStatus DFS RPC
calls from HBase (Liyin Tang via Stack)
HBASE-3717 deprecate HTable isTableEnabled() methods in favor of
HBaseAdmin methods (David Butler via Stack)
TASK
HBASE-3559 Move report of split to master OFF the heartbeat channel

View File

@ -223,7 +223,9 @@ public class HTable implements HTableInterface {
* @param tableName Name of table to check.
* @return {@code true} if table is online.
* @throws IOException if a remote or network exception occurs
* @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])}
*/
@Deprecated
public static boolean isTableEnabled(String tableName) throws IOException {
return isTableEnabled(Bytes.toBytes(tableName));
}
@ -233,7 +235,9 @@ public class HTable implements HTableInterface {
* @param tableName Name of table to check.
* @return {@code true} if table is online.
* @throws IOException if a remote or network exception occurs
* @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])}
*/
@Deprecated
public static boolean isTableEnabled(byte[] tableName) throws IOException {
return isTableEnabled(HBaseConfiguration.create(), tableName);
}
@ -244,7 +248,9 @@ public class HTable implements HTableInterface {
* @param tableName Name of table to check.
* @return {@code true} if table is online.
* @throws IOException if a remote or network exception occurs
* @deprecated use {@link HBaseAdmin#isTableEnabled(byte[])}
*/
@Deprecated
public static boolean isTableEnabled(Configuration conf, String tableName)
throws IOException {
return isTableEnabled(conf, Bytes.toBytes(tableName));