@Test public void extractChannelData() { assertEquals(channelData, ChannelzProtoUtil.extractChannelData(channel.stats)); }
static ChannelData extractChannelData(InternalChannelz.ChannelStats stats) { ChannelData.Builder builder = ChannelData.newBuilder(); builder.setTarget(stats.target) .setState(toChannelConnectivityState(stats.state)) .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)); if (stats.channelTrace != null) { builder.setTrace(toChannelTrace(stats.channelTrace)); } return builder.build(); }
ChannelzProtoUtil { static ChannelData extractChannelData(InternalChannelz.ChannelStats stats) { ChannelData.Builder builder = ChannelData.newBuilder(); builder.setTarget(stats.target) .setState(toChannelConnectivityState(stats.state)) .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)); if (stats.channelTrace != null) { builder.setTrace(toChannelTrace(stats.channelTrace)); } return builder.build(); } }
ChannelzProtoUtil { static ChannelData extractChannelData(InternalChannelz.ChannelStats stats) { ChannelData.Builder builder = ChannelData.newBuilder(); builder.setTarget(stats.target) .setState(toChannelConnectivityState(stats.state)) .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)); if (stats.channelTrace != null) { builder.setTrace(toChannelTrace(stats.channelTrace)); } return builder.build(); } private  ChannelzProtoUtil(); }
ChannelzProtoUtil { static ChannelData extractChannelData(InternalChannelz.ChannelStats stats) { ChannelData.Builder builder = ChannelData.newBuilder(); builder.setTarget(stats.target) .setState(toChannelConnectivityState(stats.state)) .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)); if (stats.channelTrace != null) { builder.setTrace(toChannelTrace(stats.channelTrace)); } return builder.build(); } private  ChannelzProtoUtil();  }
ChannelzProtoUtil { static ChannelData extractChannelData(InternalChannelz.ChannelStats stats) { ChannelData.Builder builder = ChannelData.newBuilder(); builder.setTarget(stats.target) .setState(toChannelConnectivityState(stats.state)) .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)); if (stats.channelTrace != null) { builder.setTrace(toChannelTrace(stats.channelTrace)); } return builder.build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }