예제 #1
0
 protected void handleDiscoveryResponse(PingData data, Address sender) {
   // add physical address (if available) to transport's cache
   Address logical_addr = data.getAddress() != null ? data.getAddress() : sender;
   addDiscoveryResponseToCaches(logical_addr, data.getLogicalName(), data.getPhysicalAddr());
   boolean overwrite = Objects.equals(logical_addr, sender);
   addResponse(data, overwrite);
 }
예제 #2
0
파일: ENCRYPT.java 프로젝트: x97mdr/JGroups
 private boolean keyServerChanged(Address newKeyServer) {
   return !Objects.equals(keyServerAddr, newKeyServer);
 }