/** * {@inheritDoc} */ @Override public String toString() { return (_dns != null ? "DNS: " + _dns.getName() : "NO DNS") + " state: " + _state + " task: " + _task; }
/** * {@inheritDoc} */ @Override public String toString() { return (_dns != null ? "DNS: " + _dns.getName() : "NO DNS") + " state: " + _state + " task: " + _task; }
/** * @param jmDNSImpl */ SocketListener(JmDNSImpl jmDNSImpl) { super("SocketListener(" + (jmDNSImpl != null ? jmDNSImpl.getName() : "") + ")"); this.setDaemon(true); this._jmDNSImpl = jmDNSImpl; }
/** * @param jmDNSImpl */ SocketListener(JmDNSImpl jmDNSImpl) { super("SocketListener(" + (jmDNSImpl != null ? jmDNSImpl.getName() : "") + ")"); this.setDaemon(true); this._jmDNSImpl = jmDNSImpl; }
/** * @param jmDNSImpl */ SocketListener(JmDNSImpl jmDNSImpl) { super("SocketListener(" + (jmDNSImpl != null ? jmDNSImpl.getName() : "") + ")"); this.setDaemon(true); this._jmDNSImpl = jmDNSImpl; }
/** * @param jmDNSImpl */ SocketListener(JmDNSImpl jmDNSImpl) { super("SocketListener(" + (jmDNSImpl != null ? jmDNSImpl.getName() : "") + ")"); this.setDaemon(true); this._jmDNSImpl = jmDNSImpl; }
@Override public String getName() { return "Canceler(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Prober(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Renewer(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Prober(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "ServiceResolver(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Canceler(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Announcer(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "Responder(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
@Override public String getName() { return "ServiceResolver(" + (this.getDns() != null ? this.getDns().getName() : "") + ")"; }
protected void addAnswersForServiceInfo(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers, ServiceInfoImpl info) { if ((info != null) && info.isAnnounced()) { if (this.getName().equalsIgnoreCase(info.getQualifiedName()) || this.getName().equalsIgnoreCase(info.getType())) { answers.addAll(jmDNSImpl.getLocalHost().answers(DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL)); answers.addAll(info.answers(DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL, jmDNSImpl.getLocalHost())); } if (logger.isLoggable(Level.FINER)) { logger.finer(jmDNSImpl.getName() + " DNSQuestion(" + this.getName() + ").addAnswersForServiceInfo(): info: " + info + "\n" + answers); } } }
protected void addAnswersForServiceInfo(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers, ServiceInfoImpl info) { if ((info != null) && info.isAnnounced()) { if (this.getName().equalsIgnoreCase(info.getQualifiedName()) || this.getName().equalsIgnoreCase(info.getType())) { answers.addAll(jmDNSImpl.getLocalHost().answers(DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL)); answers.addAll(info.answers(DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL, jmDNSImpl.getLocalHost())); } if (logger.isLoggable(Level.FINER)) { logger.finer(jmDNSImpl.getName() + " DNSQuestion(" + this.getName() + ").addAnswersForServiceInfo(): info: " + info + "\n" + answers); } } }
protected void addAnswersForServiceInfo(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers, ServiceInfoImpl info) { if ((info != null) && info.isAnnounced()) { if (this.getName().equalsIgnoreCase(info.getQualifiedName()) || this.getName().equalsIgnoreCase(info.getType()) || this.getName().equalsIgnoreCase(info.getTypeWithSubtype())) { answers.addAll(jmDNSImpl.getLocalHost().answers(this.getRecordClass(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL)); answers.addAll(info.answers(this.getRecordClass(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL, jmDNSImpl.getLocalHost())); } logger.debug("{} DNSQuestion({}).addAnswersForServiceInfo(): info: {}\n{}", jmDNSImpl.getName(), this.getName(), info, answers); } }