@Test public void toSocket_withDataNoOptions() throws Exception { assertEquals( Socket .newBuilder() .setRef(socketRef) .setLocal(localAddress) .setRemote(remoteAddress) .setData(socketDataWithDataNoSockOpts) .build(), ChannelzProtoUtil.toSocket(socket)); }
static Socket toSocket(InternalInstrumented<SocketStats> obj) { SocketStats socketStats = getFuture(obj.getStats()); Socket.Builder builder = Socket.newBuilder() .setRef(toSocketRef(obj)) .setLocal(toAddress(socketStats.local)); if (socketStats.security != null) { builder.setSecurity(toSecurity(socketStats.security)); } if (socketStats.remote != null) { builder.setRemote(toAddress(socketStats.remote)); } builder.setData(extractSocketData(socketStats)); return builder.build(); }
ChannelzProtoUtil { static Socket toSocket(InternalInstrumented<SocketStats> obj) { SocketStats socketStats = getFuture(obj.getStats()); Socket.Builder builder = Socket.newBuilder() .setRef(toSocketRef(obj)) .setLocal(toAddress(socketStats.local)); if (socketStats.security != null) { builder.setSecurity(toSecurity(socketStats.security)); } if (socketStats.remote != null) { builder.setRemote(toAddress(socketStats.remote)); } builder.setData(extractSocketData(socketStats)); return builder.build(); } }
ChannelzProtoUtil { static Socket toSocket(InternalInstrumented<SocketStats> obj) { SocketStats socketStats = getFuture(obj.getStats()); Socket.Builder builder = Socket.newBuilder() .setRef(toSocketRef(obj)) .setLocal(toAddress(socketStats.local)); if (socketStats.security != null) { builder.setSecurity(toSecurity(socketStats.security)); } if (socketStats.remote != null) { builder.setRemote(toAddress(socketStats.remote)); } builder.setData(extractSocketData(socketStats)); return builder.build(); } private  ChannelzProtoUtil(); }
ChannelzProtoUtil { static Socket toSocket(InternalInstrumented<SocketStats> obj) { SocketStats socketStats = getFuture(obj.getStats()); Socket.Builder builder = Socket.newBuilder() .setRef(toSocketRef(obj)) .setLocal(toAddress(socketStats.local)); if (socketStats.security != null) { builder.setSecurity(toSecurity(socketStats.security)); } if (socketStats.remote != null) { builder.setRemote(toAddress(socketStats.remote)); } builder.setData(extractSocketData(socketStats)); return builder.build(); } private  ChannelzProtoUtil();  }
ChannelzProtoUtil { static Socket toSocket(InternalInstrumented<SocketStats> obj) { SocketStats socketStats = getFuture(obj.getStats()); Socket.Builder builder = Socket.newBuilder() .setRef(toSocketRef(obj)) .setLocal(toAddress(socketStats.local)); if (socketStats.security != null) { builder.setSecurity(toSecurity(socketStats.security)); } if (socketStats.remote != null) { builder.setRemote(toAddress(socketStats.remote)); } builder.setData(extractSocketData(socketStats)); return builder.build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }