/** * Shutdown the listening and publishing resources used for the discovery, as appropriate. * * @param grl */ protected void cleanupResources(DiscoveryListener grl) { if (grl != null) { // stop listener grl.stop(); } if (udpSocket != null) { udpSocket.close(); } }
/** * Notify all listeners about a <tt>DiscoveryEvent</tt>. * * @param event <tt>DiscoveryEvent</tt> that contains provisioning URL */ public void fireDiscoveryEvent(DiscoveryEvent event) { for (DiscoveryListener listener : listeners) { listener.notifyProvisioningURL(event); } }