@Test public void toServerData() throws Exception { assertEquals(serverData, ChannelzProtoUtil.toServerData(server.serverStats)); }
static ServerData toServerData(ServerStats stats) { return ServerData .newBuilder() .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)) .build(); }
ChannelzProtoUtil { static ServerData toServerData(ServerStats stats) { return ServerData .newBuilder() .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)) .build(); } }
ChannelzProtoUtil { static ServerData toServerData(ServerStats stats) { return ServerData .newBuilder() .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)) .build(); } private  ChannelzProtoUtil(); }
ChannelzProtoUtil { static ServerData toServerData(ServerStats stats) { return ServerData .newBuilder() .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)) .build(); } private  ChannelzProtoUtil();  }
ChannelzProtoUtil { static ServerData toServerData(ServerStats stats) { return ServerData .newBuilder() .setCallsStarted(stats.callsStarted) .setCallsSucceeded(stats.callsSucceeded) .setCallsFailed(stats.callsFailed) .setLastCallStartedTimestamp(Timestamps.fromNanos(stats.lastCallStartedNanos)) .build(); } private  ChannelzProtoUtil();  static final String SO_LINGER; static final String SO_TIMEOUT; static final String TCP_INFO; }