@Override public void stop() { if (jmdns != null) { try { jmdns.close(); } catch (Exception e) { // Ignore. } } }
@Override public void run() { try { if (JmDNSFactory.onClose(getLocalAddress())) { closeTarget.close(); }; } catch (IOException e) { LOG.debug("Error closing JmDNS {}. This exception will be ignored.", getLocalhost(), e); } } };
/** * {@inheritDoc} */ @Override public void run() { try { mDNS.close(); } catch (IOException exception) { // JmDNS never throws this is only because of the closeable interface } } });
@Override public void close() { for (JmDNS jmdns : jmdnsInstances) { try { jmdns.close(); } catch (IOException e) { } } }
/** * {@inheritDoc} */ @Override public void run() { try { mDNS.close(); } catch (IOException exception) { // JmDNS never throws this is only because of the closeable interface } } });
/** * {@inheritDoc} */ @Override public void run() { try { mDNS.close(); } catch (IOException exception) { // JmDNS never throws this is only because of the closeable interface } } });
@Override public void stop() { if (jmdns != null) { try { jmdns.close(); } catch (Exception e) { // Ignore. } } }
/** * {@inheritDoc} */ @Override public void run() { try { mDNS.close(); } catch (IOException exception) { // JmDNS never throws this is only because of the closeable interface } } });
public void run() { shutdown = null; close(); } }
private void closeQuietly(JmDNS jmdns) { try { jmdns.close(); } catch (IOException e) { } }
public void close() { if (jmdns!=null) { try { jmdns.close(); } catch (IOException ex) { LOGGER.log(Level.SEVERE, null, ex); } jmdns = null; } }
public void close() { if (jmdns!=null) { try { jmdns.close(); } catch (IOException ex) { LOGGER.log(Level.SEVERE, null, ex); } jmdns = null; } }
public void close() { if (jmdns != null) { try { jmdns.close(); } catch (IOException ex) { LOGGER.log(Level.SEVERE, null, ex); } jmdns = null; } } private static final Logger LOGGER = Logger.getLogger(DNSMultiCast.class.getName());
public void close() { if (jmdns!=null) { try { jmdns.close(); } catch (IOException ex) { LOGGER.log(Level.SEVERE, null, ex); } jmdns = null; } }
@Override public void run() { this.setName(AppProperties.APPLICATION_NAME + " mDNS-Shutdown-Hook"); unregisterAllServices(); try { if (jmDNSservice != null && !isServiceStopped.get()) { jmDNSservice.close(); isServiceStopped.set(true); _logger.debug("Stopped mDNS services..."); } } catch (IOException ex) { _logger.error("Unable to close mDNS service!", ex); } } });
@Override public void run() { this.setName(AppProperties.APPLICATION_NAME + " mDNS-Shutdown-Hook"); unregisterAllServices(); try { if (jmDNSservice != null && !isServiceStopped.get()) { jmDNSservice.close(); isServiceStopped.set(true); _logger.debug("Stopped mDNS services..."); } } catch (IOException ex) { _logger.error("Unable to close mDNS service!", ex); } } });
@Override public void run() { try { if (JmDNSFactory.onClose(getLocalAddress())) { closeTarget.close(); }; } catch (IOException e) { LOG.debug("Error closing JmDNS {}. This exception will be ignored.", getLocalhost(), e); } } };
@Override public void run() { try { if (JmDNSFactory.onClose(getLocalAddress())) { closeTarget.close(); }; } catch (IOException e) { LOG.debug("Error closing JmDNS {}. This exception will be ignored.", getLocalhost(), e); } } };
@Override public void run() { try { if (JmDNSFactory.onClose(getLocalAddress())) { closeTarget.close(); }; } catch (IOException e) { LOG.debug("Error closing JmDNS {}. This exception will be ignored.", getLocalhost(), e); } } };
@Override protected void stopComponent() throws Exception { try { m_jmDNS.removeServiceListener(SERVICE_TYPE, m_jmDNSListener); } catch (Exception e) { logWarning("Exception while stopping", e); } try { m_jmDNS.unregisterAllServices(); } catch (Exception e) { logWarning("Exception while stopping", e); } try { m_jmDNS.close(); } catch (Exception e) { logWarning("Exception while stopping", e); } m_jmDNS = null; super.stopComponent(); }