// 1. Set physical addresses
Collection<PhysicalAddress> physical_addrs = rsp.getPhysicalAddrs();
if (physical_addrs != null) {
for (PhysicalAddress physical_addr : physical_addrs)
down(new Event(Event.SET_PHYSICAL_ADDRESS, new Tuple<Address, PhysicalAddress>(
logical_addr, physical_addr)));
}
// 2. Set logical name
String logical_name = rsp.getLogicalName();
if (logical_name != null && logical_addr instanceof org.jgroups.util.UUID)
org.jgroups.util.UUID.add(logical_addr, logical_name);
}
if (initial_mbrs.isEmpty()) {
if (log.isTraceEnabled())
log.trace("[FIND_INITIAL_MBRS]: found no members");
return;
}
if (log.isTraceEnabled())
log.trace("consolidated mbrs from GossipRouter(s) are " + initial_mbrs);
PhysicalAddress physical_addr=(PhysicalAddress)down_prot.down(new Event(Event.GET_PHYSICAL_ADDRESS, local_addr));
PingData data=new PingData(local_addr, null, false, UUID.get(local_addr), Arrays.asList(physical_addr));
for (Address mbr_addr : initial_mbrs) {
Message msg = new Message(mbr_addr);
msg.setFlag(Message.OOB);
PingHeader hdr = new PingHeader(PingHeader.GET_MBRS_REQ, data, cluster_name);
hdr.return_view_only = return_views_only;
msg.putHeader(this.id, hdr);
if (log.isTraceEnabled())
log.trace("[FIND_INITIAL_MBRS] sending GET_MBRS_REQ request to " + mbr_addr);
down_prot.down(new Event(Event.MSG, msg));
}
}