/** * Processes the {@link NetworkNotification#SERVER_REMOVED} notification. This notification means a previously known * "server VM" has gone offline and has taken all of its remote endpoints with it. * * @param networkNotification the notification */ private void serverRemovedNotification(NetworkNotification networkNotification) { List<AutoDiscoveryListener> listeners_copy; InvokerLocator[] notif_locators = networkNotification.getLocator(); synchronized (m_lock) { // the server has gone down, remove it from our map of known servers m_discoveredServers.remove(networkNotification.getIdentity()); // make a copy while we are synchronized - then release the lock so we let other notifications to get processed listeners_copy = new ArrayList<AutoDiscoveryListener>(m_discoveryListeners); } // notify all of our listeners of the invoker locators that have gone down for (int x = 0; x < notif_locators.length; x++) { notifyListenersOffline(listeners_copy, notif_locators[x]); } return; }
/** * Processes the {@link NetworkNotification#SERVER_REMOVED} notification. This notification means a previously known * "server VM" has gone offline and has taken all of its remote endpoints with it. * * @param networkNotification the notification */ private void serverRemovedNotification(NetworkNotification networkNotification) { List<AutoDiscoveryListener> listeners_copy; InvokerLocator[] notif_locators = networkNotification.getLocator(); synchronized (m_lock) { // the server has gone down, remove it from our map of known servers m_discoveredServers.remove(networkNotification.getIdentity()); // make a copy while we are synchronized - then release the lock so we let other notifications to get processed listeners_copy = new ArrayList<AutoDiscoveryListener>(m_discoveryListeners); } // notify all of our listeners of the invoker locators that have gone down for (int x = 0; x < notif_locators.length; x++) { notifyListenersOffline(listeners_copy, notif_locators[x]); } return; }
InvokerLocator[] notif_locators = networkNotification.getLocator(); if (server_invokers == null) { server_invokers = new ArrayList<InvokerLocator>(networkNotification.getLocator().length); m_discoveredServers.put(networkNotification.getIdentity(), server_invokers);
InvokerLocator[] notif_locators = networkNotification.getLocator(); if (server_invokers == null) { server_invokers = new ArrayList<InvokerLocator>(networkNotification.getLocator().length); m_discoveredServers.put(networkNotification.getIdentity(), server_invokers);
List<InvokerLocator> new_invokers = new ArrayList<InvokerLocator>(); List<InvokerLocator> dead_invokers = new ArrayList<InvokerLocator>(); InvokerLocator[] notif_locators = networkNotification.getLocator();
List<InvokerLocator> new_invokers = new ArrayList<InvokerLocator>(); List<InvokerLocator> dead_invokers = new ArrayList<InvokerLocator>(); InvokerLocator[] notif_locators = networkNotification.getLocator();
InvokerLocator[] locators = networkNotification.getLocator(); for(int x = 0; x < locators.length; x++) InvokerLocator[] locators = networkNotification.getLocator(); for(int x = 0; x < locators.length; x++)
InvokerLocator[] locators = networkNotification.getLocator(); for(int x = 0; x < locators.length; x++) InvokerLocator[] locators = networkNotification.getLocator(); for(int x = 0; x < locators.length; x++)