8283848586878889909192
} public void stop() { if (jmdns != null) { for (Iterator<ServiceInfo> iter = serviceInfos.iterator(); iter.hasNext();) { ServiceInfo si = iter.next(); jmdns.unregisterService(si); } // Close it down async since this could block for a while. final JmDNS closeTarget = jmdns;
102103104105106107108109110
jmdns = null; } } public void registerService(String name) throws IOException { ServiceInfo si = createServiceInfo(name, new HashMap()); serviceInfos.add(si); getJmdns().registerService(si); }
198199200201202203204
String type = getType(); if (LOG.isDebugEnabled()) { LOG.debug("Registering service type: " + type + " name: " + name + " details: " + map); } return new ServiceInfo(type, name + "." + type, port, weight, priority, ""); }
8788899091929394959697
} public void stop() { if( jmdns!=null ) { for (Iterator iter = serviceInfos.iterator(); iter.hasNext();) { ServiceInfo si = (ServiceInfo) iter.next(); jmdns.unregisterService(si); } // Close it down async since this could block for a while. final JmDNS closeTarget = jmdns;
107108109110111112113114115
jmdns=null; } } public void registerService(String name) throws IOException { ServiceInfo si = createServiceInfo(name, new HashMap()); serviceInfos.add(si); getJmdns().registerService(si); }
200201202203204205206
String type = getType(); if (log.isDebugEnabled()) { log.debug("Registering service type: " + type + " name: " + name + " details: " + map); } return new ServiceInfo(type, name+"."+type, port, weight, priority, ""); }