public void deactivate() { unregisterAllServices(); if (mdnsClient != null) { mdnsClient.close(); logger.debug("mDNS service has been stopped"); } }
/** @{inheritDoc */ @Override public void unregisterService(ServiceDescription description) { if (mdnsClient != null) { mdnsClient.unregisterService(description); } }
public void unsetMDNSClient(MDNSClient mdnsClient) { this.mdnsClient = null; mdnsClient.unregisterAllServices(); }
/** This method unregisters all services from Bonjour/MDNS */ protected void unregisterAllServices() { if (mdnsClient != null) { mdnsClient.unregisterAllServices(); } }