From 569b5d2335d1e95a779bd003947da14105f1552e Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 31 Mar 2011 05:50:43 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 2 ++ src/main/java/org/apache/hadoop/hbase/client/HTable.java | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index d31af42e56e..23e85544047 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/src/main/java/org/apache/hadoop/hbase/client/HTable.java index e7f8b072f8e..5c9310eed82 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -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));