/** * remove a server no longer available on the network * * @param identity */ public void removeServer(final Identity identity) { NetworkInstance instance = null; synchronized(servers) { instance = (NetworkInstance) servers.remove(identity); } if(instance != null) { log.debug("removeServer - " + identity); final ServerInvokerMetadata il[] = instance.getServerInvokers(); // put this on a separate thread so we don't block further detection ... // TODO: let's put this is a thread pool thread -JGH new Thread() { public void run() { broadcaster.sendNotification(new NetworkNotification(objectName, NetworkNotification.SERVER_REMOVED, identity, il)); } }.start(); } }
ServerInvokerMetadata[] metadata = netInstance.getServerInvokers(); for (int i = 0; i < metadata.length; i++)