hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-19439 Mark ShortCircuitMasterConnection with InterfaceAudience Private.
Date Thu, 07 Dec 2017 05:53:26 GMT
Repository: hbase
Updated Branches:
  refs/heads/master d2b1578b7 -> 98a21ef1b


HBASE-19439 Mark ShortCircuitMasterConnection  with InterfaceAudience Private.


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

Branch: refs/heads/master
Commit: 98a21ef1bae01e209cd1816e37f3afd89a6e473b
Parents: d2b1578
Author: anoopsamjohn <anoopsamjohn@gmail.com>
Authored: Thu Dec 7 11:22:40 2017 +0530
Committer: anoopsamjohn <anoopsamjohn@gmail.com>
Committed: Thu Dec 7 11:22:40 2017 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/client/MasterCallable.java   | 2 ++
 .../org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java  | 2 ++
 .../apache/hadoop/hbase/client/ShortCircuitMasterConnection.java   | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/98a21ef1/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterCallable.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterCallable.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterCallable.java
index 950b1d3..f56ebd5 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterCallable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterCallable.java
@@ -27,6 +27,7 @@ import org.apache.hadoop.hbase.ipc.HBaseRpcController;
 import org.apache.hadoop.hbase.ipc.RpcControllerFactory;
 import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
 import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.yetus.audience.InterfaceAudience;
 
 /**
  * A RetryingCallable for Master RPC operations.
@@ -41,6 +42,7 @@ import org.apache.hadoop.hbase.util.Bytes;
  * it has to deal with Coprocessor Endpoints.
  * @param <V> return type
  */
+@InterfaceAudience.Private
 abstract class MasterCallable<V> implements RetryingCallable<V>, Closeable {
   protected final ClusterConnection connection;
   protected MasterKeepAliveConnection master;

http://git-wip-us.apache.org/repos/asf/hbase/blob/98a21ef1/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java
index 1dc3a47..b1c3777 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/MasterKeepAliveConnection.java
@@ -21,6 +21,7 @@
 package org.apache.hadoop.hbase.client;
 
 import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos;
+import org.apache.yetus.audience.InterfaceAudience;
 
 /**
  * A KeepAlive connection is not physically closed immediately after the close,
@@ -33,6 +34,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos;
  * against the master on the MasterProtos.MasterService.BlockingInterface; but not by
  * final user code. Hence it's package protected.
  */
+@InterfaceAudience.Private
 interface MasterKeepAliveConnection extends MasterProtos.MasterService.BlockingInterface
{
   // Do this instead of implement Closeable because closeable returning IOE is PITA.
   void close();

http://git-wip-us.apache.org/repos/asf/hbase/blob/98a21ef1/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ShortCircuitMasterConnection.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ShortCircuitMasterConnection.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ShortCircuitMasterConnection.java
index 527f722..d9277c6 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ShortCircuitMasterConnection.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ShortCircuitMasterConnection.java
@@ -173,7 +173,7 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.Updat
  * A short-circuit connection that can bypass the RPC layer (serialization, deserialization,
  * networking, etc..) when talking to a local master
  */
-@InterfaceAudience.Public
+@InterfaceAudience.Private
 public class ShortCircuitMasterConnection implements MasterKeepAliveConnection {
 
   private final MasterService.BlockingInterface stub;


Mime
View raw message