diff options
author | zpencer <spencerfang@google.com> | 2018-03-08 14:56:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 14:56:04 -0800 |
commit | f0eb6d2102c5d09e887c1eefd563985c1d702273 (patch) | |
tree | 43c37dbfc870128fab69d5290707d233589d3f61 /cronet | |
parent | 86fe318dead0de0e086e2a00831ca9b946355b11 (diff) | |
download | grpc-grpc-java-f0eb6d2102c5d09e887c1eefd563985c1d702273.tar.gz |
core,netty,okhttp,testing: nest TransportStats inside SocketStats for channelz (#4190)
Transport ststistics should really be a child member of SocketStats.
While we're at it, let's add the local and remote SocketAddress to
SocketStats, with a test.
Diffstat (limited to 'cronet')
-rw-r--r-- | cronet/src/main/java/io/grpc/cronet/CronetClientTransport.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cronet/src/main/java/io/grpc/cronet/CronetClientTransport.java b/cronet/src/main/java/io/grpc/cronet/CronetClientTransport.java index 8955d697c..d5fcea323 100644 --- a/cronet/src/main/java/io/grpc/cronet/CronetClientTransport.java +++ b/cronet/src/main/java/io/grpc/cronet/CronetClientTransport.java @@ -26,7 +26,7 @@ import io.grpc.MethodDescriptor; import io.grpc.Status; import io.grpc.Status.Code; import io.grpc.cronet.CronetChannelBuilder.StreamBuilderFactory; -import io.grpc.internal.Channelz.TransportStats; +import io.grpc.internal.Channelz.SocketStats; import io.grpc.internal.ConnectionClientTransport; import io.grpc.internal.GrpcUtil; import io.grpc.internal.LogId; @@ -94,8 +94,8 @@ class CronetClientTransport implements ConnectionClientTransport { } @Override - public ListenableFuture<TransportStats> getStats() { - SettableFuture<TransportStats> f = SettableFuture.create(); + public ListenableFuture<SocketStats> getStats() { + SettableFuture<SocketStats> f = SettableFuture.create(); f.set(null); return f; } |