/** * To be used to force detection to occur in synchronouse manner * instead of being passive and waiting for detection messages to * come in from remote detectors. The servers returned should be * the remote servers that are online at this point in time. Note, calling this * method may take a few seconds to complete. * @return */ public NetworkInstance[] forceDetection() { forceHeartbeat(); if(networkRegistry != null) { return networkRegistry.getServers(); } else { return null; } }
networkRegistry.addServer(detection.getIdentity(), detection.getServerInvokers()); networkRegistry.updateServer(detection.getIdentity(), detection.getServerInvokers());
networkRegistry.removeServer(detection.getIdentity()); log.debug("Removed detection " + detection);