logger.info("Bus State : " + (bus.getState()));
logger.info("Wire Protocol : V3.JSON");
logger.info("Active Channel : " + (!federatedApp ? "None" : (bus.getTransportHandler())));
logger.info(SEP);
final TransportStatistics stats = bus.getTransportHandler().getStatistics();
logger.info("Channel Details:");
if (federatedApp) {
logger.info(" Channel Description : " + (stats.getTransportDescription()));
if (stats.isFullDuplex()) {
logger.info(" Endpoint (RX/TX) : " + (stats.getRxEndpoint()));
}
else {
logger.info(" Endpoint (RX) : " + (stats.getRxEndpoint()));
logger.info(" Endpoint (TX) : " + (stats.getTxEndpoint()));
}
logger.info(" Pending Transmissions : " + (stats.getPendingMessages()));
logger.info("");
logger.info(" TX Count : " + (stats.getMessagesSent()));
logger.info(" RX Count : " + (stats.getMessagesReceived()));
final long connectedTime = stats.getConnectedTime();
if (connectedTime == -1) {
logger.info(" Time Connected : Not Connected.");
}
else {
logger.info(" Time Connected : " + ((System.currentTimeMillis() - connectedTime) / 1000) + " secs.");
}
logger.info(" Last Activity (TX/RX) : " + ((System.currentTimeMillis() - stats.getLastTransmissionTime()) / 1000) + " secs ago.");
final int measuredLatency = stats.getMeasuredLatency();
logger.info(" Measured Latency : " + (measuredLatency == -1 ? "N/A" : measuredLatency + "ms"));
}
else {
logger.info(" <No transport configured>");
}