aboutsummaryrefslogtreecommitdiff
path: root/alts
diff options
context:
space:
mode:
authorzpencer <spencerfang@google.com>2018-09-04 16:52:01 -0700
committerGitHub <noreply@github.com>2018-09-04 16:52:01 -0700
commit4d366ce978683bab49660134a266afff8102fea6 (patch)
treeaf13e43aa5b03eafc9616564c244c132ca5ea044 /alts
parentf8274c4e7c92733574a16733bc5f725898772f75 (diff)
downloadgrpc-grpc-java-4d366ce978683bab49660134a266afff8102fea6.tar.gz
all: move Channelz to io.grpc as InternalChannelz (#4797)
This is an API used to coordinate across packages and must live in `io.grpc`. Prepending `Internal` makes it easier to detect and hide this class from public visibility when using certain build tools. fixes #4796
Diffstat (limited to 'alts')
-rw-r--r--alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java4
-rw-r--r--alts/src/test/java/io/grpc/alts/internal/AltsProtocolNegotiatorTest.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java b/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java
index edb38000d..f146dbc4c 100644
--- a/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java
+++ b/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java
@@ -22,12 +22,12 @@ import com.google.protobuf.Any;
import io.grpc.Attributes;
import io.grpc.CallCredentials;
import io.grpc.Grpc;
+import io.grpc.InternalChannelz.OtherSecurity;
+import io.grpc.InternalChannelz.Security;
import io.grpc.SecurityLevel;
import io.grpc.Status;
import io.grpc.alts.internal.RpcProtocolVersionsUtil.RpcVersionsCheckResult;
import io.grpc.alts.internal.TsiHandshakeHandler.TsiHandshakeCompletionEvent;
-import io.grpc.internal.Channelz.OtherSecurity;
-import io.grpc.internal.Channelz.Security;
import io.grpc.netty.GrpcHttp2ConnectionHandler;
import io.grpc.netty.ProtocolNegotiator;
import io.grpc.netty.ProtocolNegotiators.AbstractBufferingHandler;
diff --git a/alts/src/test/java/io/grpc/alts/internal/AltsProtocolNegotiatorTest.java b/alts/src/test/java/io/grpc/alts/internal/AltsProtocolNegotiatorTest.java
index 8ff2abc62..936c298a3 100644
--- a/alts/src/test/java/io/grpc/alts/internal/AltsProtocolNegotiatorTest.java
+++ b/alts/src/test/java/io/grpc/alts/internal/AltsProtocolNegotiatorTest.java
@@ -26,11 +26,11 @@ import static org.junit.Assert.assertTrue;
import io.grpc.Attributes;
import io.grpc.CallCredentials;
import io.grpc.Grpc;
+import io.grpc.InternalChannelz;
import io.grpc.SecurityLevel;
import io.grpc.alts.internal.Handshaker.HandshakerResult;
import io.grpc.alts.internal.TsiFrameProtector.Consumer;
import io.grpc.alts.internal.TsiPeer.Property;
-import io.grpc.internal.Channelz;
import io.grpc.netty.GrpcHttp2ConnectionHandler;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
@@ -405,7 +405,7 @@ public class AltsProtocolNegotiatorTest {
@Override
public void handleProtocolNegotiationCompleted(
- Attributes attrs, Channelz.Security securityInfo) {
+ Attributes attrs, InternalChannelz.Security securityInfo) {
// If we are added to the pipeline, we need to remove ourselves. The HTTP2 handler
channel.pipeline().remove(this);
this.attrs = attrs;