/** * See if the multicast retransmission ratio is okay */ void checkRetransmissionRatio(List status) { double threshold = this.config.getMaxRetransmissionRatio(); int mcastMessages = this.dmStats.getMcastWrites(); if (mcastMessages > 100000) { // avoid initial state & int overflow // the ratio we actually use here is (retransmit requests) / (mcast datagram writes) // a single retransmit request may include multiple missed messages double ratio = (this.dmStats.getMcastRetransmits() * 1.0) / (this.dmStats.getMcastWrites() * 1.0); if (ratio > threshold) { String s = "The number of message retransmissions (" + ratio + ") exceeds the threshold (" + threshold + ")"; status.add(okayHealth(s)); } } }
/** * See if the multicast retransmission ratio is okay */ void checkRetransmissionRatio(List status) { double threshold = this.config.getMaxRetransmissionRatio(); int mcastMessages = this.dmStats.getMcastWrites(); if (mcastMessages > 100000) { // avoid initial state & int overflow // the ratio we actually use here is (retransmit requests) / (mcast datagram writes) // a single retransmit request may include multiple missed messages double ratio = (this.dmStats.getMcastRetransmits() * 1.0) / (this.dmStats.getMcastWrites() * 1.0); if (ratio > threshold) { String s = "The number of message retransmissions (" + ratio + ") exceeds the threshold (" + threshold + ")"; status.add(okayHealth(s)); } } }