/** * {@inheritDoc} */ @Override public Map<Fields, String> getQualifiedNameMap() { Map<Fields, String> map = new HashMap<Fields, String>(5); map.put(Fields.Domain, this.getDomain()); map.put(Fields.Protocol, this.getProtocol()); map.put(Fields.Application, this.getApplication()); map.put(Fields.Instance, this.getName()); map.put(Fields.Subtype, this.getSubtype()); return map; }
/** * {@inheritDoc} */ @Override public Map<Fields, String> getQualifiedNameMap() { Map<Fields, String> map = new HashMap<Fields, String>(5); map.put(Fields.Domain, this.getDomain()); map.put(Fields.Protocol, this.getProtocol()); map.put(Fields.Application, this.getApplication()); map.put(Fields.Instance, this.getName()); map.put(Fields.Subtype, this.getSubtype()); return map; }
/** * {@inheritDoc} */ @Override public Map<Fields, String> getQualifiedNameMap() { Map<Fields, String> map = new HashMap<Fields, String>(5); map.put(Fields.Domain, this.getDomain()); map.put(Fields.Protocol, this.getProtocol()); map.put(Fields.Application, this.getApplication()); map.put(Fields.Instance, this.getName()); map.put(Fields.Subtype, this.getSubtype()); return map; }
/** * {@inheritDoc} */ @Override public Map<Fields, String> getQualifiedNameMap() { Map<Fields, String> map = new HashMap<Fields, String>(5); map.put(Fields.Domain, this.getDomain()); map.put(Fields.Protocol, this.getProtocol()); map.put(Fields.Application, this.getApplication()); map.put(Fields.Instance, this.getName()); map.put(Fields.Subtype, this.getSubtype()); return map; }
/** * {@inheritDoc} */ @Override public String getQualifiedName() { String domain = this.getDomain(); String protocol = this.getProtocol(); String application = this.getApplication(); String instance = this.getName(); // String subtype = this.getSubtype(); // return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + (subtype.length() > 0 ? ",_" + subtype.toLowerCase() + "." : ".") : "") + domain // + "."; return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; }
/** * {@inheritDoc} */ @Override public String getQualifiedName() { String domain = this.getDomain(); String protocol = this.getProtocol(); String application = this.getApplication(); String instance = this.getName(); // String subtype = this.getSubtype(); // return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + (subtype.length() > 0 ? ",_" + subtype.toLowerCase() + "." : ".") : "") + domain // + "."; return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; }
/** * {@inheritDoc} */ @Override public String getQualifiedName() { String domain = this.getDomain(); String protocol = this.getProtocol(); String application = this.getApplication(); String instance = this.getName(); // String subtype = this.getSubtype(); // return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + (subtype.length() > 0 ? ",_" + subtype.toLowerCase() + "." : ".") : "") + domain // + "."; return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; }
/** * {@inheritDoc} */ @Override public String getQualifiedName() { String domain = this.getDomain(); String protocol = this.getProtocol(); String application = this.getApplication(); String instance = this.getName(); // String subtype = this.getSubtype(); // return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + (subtype.length() > 0 ? ",_" + subtype.toLowerCase() + "." : ".") : "") + domain // + "."; return (instance.length() > 0 ? instance + "." : "") + (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; }
@Override boolean handleResponse(JmDNSImpl dns) { ServiceInfoImpl info = (ServiceInfoImpl) dns.getServices().get(this.getKey()); if (info != null && (_port != info.getPort() || !_server.equalsIgnoreCase(dns.getLocalHost().getName()))) { logger1.finer("handleResponse() Denial detected"); if (info.isProbing()) { String oldName = info.getQualifiedName().toLowerCase(); info.setName(dns.incrementName(info.getName())); dns.getServices().remove(oldName); dns.getServices().put(info.getQualifiedName().toLowerCase(), info); logger1.finer("handleResponse() New unique name chose:" + info.getName()); } info.revertState(); return true; } return false; }
@Override boolean handleResponse(JmDNSImpl dns) { ServiceInfoImpl info = (ServiceInfoImpl) dns.getServices().get(this.getKey()); if (info != null && (_port != info.getPort() || !_server.equalsIgnoreCase(dns.getLocalHost().getName()))) { logger1.finer("handleResponse() Denial detected"); if (info.isProbing()) { String oldName = info.getQualifiedName().toLowerCase(); info.setName(dns.incrementName(info.getName())); dns.getServices().remove(oldName); dns.getServices().put(info.getQualifiedName().toLowerCase(), info); logger1.finer("handleResponse() New unique name chose:" + info.getName()); } info.revertState(); return true; } return false; }
@Override boolean handleResponse(JmDNSImpl dns) { ServiceInfoImpl info = (ServiceInfoImpl) dns.getServices().get(this.getKey()); if (info != null && (_port != info.getPort() || !_server.equalsIgnoreCase(dns.getLocalHost().getName()))) { logger1.finer("handleResponse() Denial detected"); if (info.isProbing()) { String oldName = info.getQualifiedName().toLowerCase(); info.setName(dns.incrementName(info.getName())); dns.getServices().remove(oldName); dns.getServices().put(info.getQualifiedName().toLowerCase(), info); logger1.finer("handleResponse() New unique name chose:" + info.getName()); } info.revertState(); return true; } return false; }
@Override boolean handleResponse(JmDNSImpl dns) { ServiceInfoImpl info = (ServiceInfoImpl) dns.getServices().get(this.getKey()); if (info != null && (_port != info.getPort() || !_server.equalsIgnoreCase(dns.getLocalHost().getName()))) { logger1.debug("handleResponse() Denial detected"); if (info.isProbing()) { String oldName = info.getQualifiedName().toLowerCase(); info.setName(NameRegister.Factory.getRegistry().incrementName(dns.getLocalHost().getInetAddress(), info.getName(), NameRegister.NameType.SERVICE)); dns.getServices().remove(oldName); dns.getServices().put(info.getQualifiedName().toLowerCase(), info); logger1.debug("handleResponse() New unique name chose:{}", info.getName()); } info.revertState(); return true; } return false; }
logger.finer("makeServiceNameUnique() JmDNS.makeServiceNameUnique srv collision:" + dnsEntry + " s.server=" + s.getServer() + " " + _localHost.getName() + " equals:" + (s.getServer().equals(_localHost.getName()))); info.setName(incrementName(info.getName())); collision = true; break; info.setName(incrementName(info.getName())); collision = true;
logger.finer("makeServiceNameUnique() JmDNS.makeServiceNameUnique srv collision:" + dnsEntry + " s.server=" + s.getServer() + " " + _localHost.getName() + " equals:" + (s.getServer().equals(_localHost.getName()))); info.setName(incrementName(info.getName())); collision = true; break; info.setName(incrementName(info.getName())); collision = true;
logger.finer("makeServiceNameUnique() JmDNS.makeServiceNameUnique srv collision:" + dnsEntry + " s.server=" + s.getServer() + " " + _localHost.getName() + " equals:" + (s.getServer().equals(_localHost.getName()))); info.setName(incrementName(info.getName())); collision = true; break; info.setName(incrementName(info.getName())); collision = true;
info.setName(NameRegister.Factory.getRegistry().incrementName(dns.getLocalHost().getInetAddress(), info.getName(), NameRegister.NameType.SERVICE)); dns.getServices().remove(oldName); dns.getServices().put(info.getQualifiedName().toLowerCase(), info); logger1.debug("handleQuery() Lost tie break: new unique name chosen:{}", info.getName());
s.getServer().equals(_localHost.getName()) ); info.setName(NameRegister.Factory.getRegistry().incrementName(_localHost.getInetAddress(), info.getName(), NameRegister.NameType.SERVICE)); collision = true; break; info.setName(NameRegister.Factory.getRegistry().incrementName(_localHost.getInetAddress(), info.getName(), NameRegister.NameType.SERVICE)); collision = true;