Tabnine Logo
HostInfo.getDNSAddressRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
getDNSAddressRecord
method
in
javax.jmdns.impl.HostInfo

Best Java code snippets using javax.jmdns.impl.HostInfo.getDNSAddressRecord (Showing top 16 results out of 315)

origin: org.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: DeviceConnect/DeviceConnect-Android

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: javax.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: org.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: org.jenkins-ci/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: javax.jmdns/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: org.jenkins-ci/jmdns

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: DeviceConnect/DeviceConnect-Android

@Override
public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) {
  DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
  if (answer != null) {
    answers.add(answer);
  }
}
origin: javax.jmdns/jmdns

public boolean conflictWithRecord(DNSRecord.Address record) {
  DNSRecord.Address hostAddress = this.getDNSAddressRecord(record.getRecordType(), record.isUnique(), DNSConstants.DNS_TTL);
  if (hostAddress != null) {
    return hostAddress.sameType(record) && hostAddress.sameName(record) && (!hostAddress.sameValue(record));
  }
  return false;
}
origin: org.jmdns/jmdns

public boolean conflictWithRecord(DNSRecord.Address record) {
  DNSRecord.Address hostAddress = this.getDNSAddressRecord(record.getRecordType(), record.isUnique(), DNSConstants.DNS_TTL);
  if (hostAddress != null) {
    return hostAddress.sameType(record) && hostAddress.sameName(record) && (!hostAddress.sameValue(record));
  }
  return false;
}
origin: DeviceConnect/DeviceConnect-Android

public boolean conflictWithRecord(DNSRecord.Address record) {
  DNSRecord.Address hostAddress = this.getDNSAddressRecord(record.getRecordType(), record.isUnique(), DNSConstants.DNS_TTL);
  if (hostAddress != null) {
    return hostAddress.sameType(record) && hostAddress.sameName(record) && (!hostAddress.sameValue(record));
  }
  return false;
}
origin: javax.jmdns/jmdns

boolean handleQuery(JmDNSImpl dns, long expirationTime) {
  if (dns.getLocalHost().conflictWithRecord(this)) {
    DNSRecord.Address localAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this.isUnique(), DNSConstants.DNS_TTL);
    int comparison = this.compareTo(localAddress);
origin: org.jmdns/jmdns

boolean handleQuery(JmDNSImpl dns, long expirationTime) {
  if (dns.getLocalHost().conflictWithRecord(this)) {
    DNSRecord.Address localAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this.isUnique(), DNSConstants.DNS_TTL);
    if (localAddress != null) {
      int comparison = this.compareTo(localAddress);
origin: DeviceConnect/DeviceConnect-Android

boolean handleQuery(JmDNSImpl dns, long expirationTime) {
  if (dns.getLocalHost().conflictWithRecord(this)) {
    DNSRecord.Address localAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this.isUnique(), DNSConstants.DNS_TTL);
    int comparison = this.compareTo(localAddress);
origin: org.jenkins-ci/jmdns

/**
 * Does the necessary actions, when this as a response.
 */
@Override
boolean handleResponse(JmDNSImpl dns) {
  DNSRecord.Address dnsAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this.isUnique(), DNSConstants.DNS_TTL);
  if (dnsAddress != null) {
    if (dnsAddress.sameType(this) && dnsAddress.sameName(this) && (!dnsAddress.sameValue(this))) {
      logger1.finer("handleResponse() Denial detected");
      if (dns.isProbing()) {
        dns.getLocalHost().incrementHostName();
        dns.getCache().clear();
        for (ServiceInfo serviceInfo : dns.getServices().values()) {
          ServiceInfoImpl info = (ServiceInfoImpl) serviceInfo;
          info.revertState();
        }
      }
      dns.revertState();
      return true;
    }
  }
  return false;
}
origin: org.jenkins-ci/jmdns

/**
 * Does the necessary actions, when this as a query.
 */
@Override
boolean handleQuery(JmDNSImpl dns, long expirationTime) {
  DNSRecord.Address dnsAddress = dns.getLocalHost().getDNSAddressRecord(this.getRecordType(), this.isUnique(), DNSConstants.DNS_TTL);
  if (dnsAddress != null) {
    if (dnsAddress.sameType(this) && dnsAddress.sameName(this) && (!dnsAddress.sameValue(this))) {
      logger1.finer("handleQuery() Conflicting probe detected. lex compare " + compareTo(dnsAddress));
      // Tie-breaker test
      if (dns.isProbing() && compareTo(dnsAddress) >= 0) {
        // We lost the tie-break. We have to choose a different name.
        dns.getLocalHost().incrementHostName();
        dns.getCache().clear();
        for (ServiceInfo serviceInfo : dns.getServices().values()) {
          ServiceInfoImpl info = (ServiceInfoImpl) serviceInfo;
          info.revertState();
        }
      }
      dns.revertState();
      return true;
    }
  }
  return false;
}
javax.jmdns.implHostInfogetDNSAddressRecord

Popular methods of HostInfo

  • getInetAddress
  • getName
  • <init>
  • advanceState
  • answers
  • associateWithTask
  • cancelState
  • closeState
  • getDNS4AddressRecord
  • getDNS4ReverseAddressRecord
  • getDNS6AddressRecord
  • getDNS6ReverseAddressRecord
  • getDNS6AddressRecord,
  • getDNS6ReverseAddressRecord,
  • getDNSReverseAddressRecord,
  • getInet4Address,
  • getInet6Address,
  • getInterface,
  • incrementHostName,
  • isAnnounced,
  • isAnnouncing

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Reference (javax.naming)
  • Option (scala)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now