You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/03/31 07:50:44 UTC

svn commit: r1087191 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/client/HTable.java

Author: stack
Date: Thu Mar 31 05:50:43 2011
New Revision: 1087191

URL: http://svn.apache.org/viewvc?rev=1087191&view=rev
Log:
HBASE-3717 deprecate HTable isTableEnabled() methods in favor of HBaseAdmin methods

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1087191&r1=1087190&r2=1087191&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Mar 31 05:50:43 2011
@@ -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

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java?rev=1087191&r1=1087190&r2=1087191&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java Thu Mar 31 05:50:43 2011
@@ -223,7 +223,9 @@ public class HTable implements HTableInt
    * @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 HTableInt
    * @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 HTableInt
    * @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));