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.trace("updateTopologyInfo will ignore unsuccessful response (another node may not be ready), got response with success=" + r.isSuccessful() +", is a " + r.getClass().getSimpleName());