private void updateTopologyInfo(Collection<Response> responses) {
for (Response r : responses) {
if (r instanceof SuccessfulResponse) {
SuccessfulResponse sr = (SuccessfulResponse) r;
NodeTopologyInfo nti = (NodeTopologyInfo) sr.getResponseValue();
if (nti != null) {
distributionManager.getTopologyInfo().addNodeTopologyInfo(nti.getAddress(), nti);
}
} else {
// will ignore unsuccessful response
if (trace)
log.tracef("updateTopologyInfo will ignore unsuccessful response (another node may not be ready), got response with success=%s, is a %s", r.isSuccessful(), r.getClass().getSimpleName());