HBASE-19439 Mark ShortCircuitMasterConnection with InterfaceAudience Private.

This commit is contained in:
anoopsamjohn 2017-12-07 11:22:40 +05:30
parent d2b1578b73
commit 98a21ef1ba
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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;