You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ss...@apache.org on 2015/05/02 00:52:40 UTC

hbase git commit: HBASE-13358 Upgrade VisibilityClient API to accept Connection object. ANOTHER ADDENDUM - fix visibility label shell admin

Repository: hbase
Updated Branches:
  refs/heads/master 8bffd45bd -> 58689b4a0


HBASE-13358 Upgrade VisibilityClient API to accept Connection object. ANOTHER ADDENDUM - fix visibility label shell admin


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/58689b4a
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/58689b4a
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/58689b4a

Branch: refs/heads/master
Commit: 58689b4a0093a64873a400b4b3e355a7a730e73a
Parents: 8bffd45
Author: Srikanth Srungarapu <ss...@cloudera.com>
Authored: Fri May 1 15:46:11 2015 -0700
Committer: Srikanth Srungarapu <ss...@cloudera.com>
Committed: Fri May 1 15:46:11 2015 -0700

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/visibility_labels.rb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/58689b4a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb b/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
index a3f8b1a..805132c 100644
--- a/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
+++ b/hbase-shell/src/main/ruby/hbase/visibility_labels.rb
@@ -26,8 +26,8 @@ module Hbase
 
     def initialize(admin, formatter)
       @admin = admin
-      @config = @admin.getConfiguration()
       @formatter = formatter
+      @connection = @admin.getConnection()
     end
 
     def close
@@ -45,7 +45,7 @@ module Hbase
       end
 
       begin
-        response = VisibilityClient.addLabels(@config, labels.to_java(:string))
+        response = VisibilityClient.addLabels(@connection, labels.to_java(:string))
         if response.nil?
           raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
         end
@@ -70,7 +70,7 @@ module Hbase
       end
 
       begin
-        response = VisibilityClient.setAuths(@config, auths.to_java(:string), user)
+        response = VisibilityClient.setAuths(@connection, auths.to_java(:string), user)
         if response.nil?
           raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
         end
@@ -90,7 +90,7 @@ module Hbase
     def get_auths(user)
       lables_table_available?
       begin
-        response = VisibilityClient.getAuths(@config, user)
+        response = VisibilityClient.getAuths(@connection, user)
         if response.nil?
           raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
         end
@@ -104,7 +104,7 @@ module Hbase
     def list_labels(regex = ".*")
       lables_table_available?
       begin
-        response = VisibilityClient.listLabels(@config, regex)
+        response = VisibilityClient.listLabels(@connection, regex)
         if response.nil?
           raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
         end
@@ -123,7 +123,7 @@ module Hbase
       end
 
       begin
-        response = VisibilityClient.clearAuths(@config, auths.to_java(:string), user)
+        response = VisibilityClient.clearAuths(@connection, auths.to_java(:string), user)
         if response.nil?
           raise(ArgumentError, "DISABLED: Visibility labels feature is not available")
         end