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

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

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

origin: org.jmdns/jmdns

/**
 * Does the necessary actions, when this as a response.
 */
@Override
boolean handleResponse(JmDNSImpl dns) {
  if (dns.getLocalHost().conflictWithRecord(this)) {
    logger1.debug("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: DeviceConnect/DeviceConnect-Android

/**
 * Does the necessary actions, when this as a response.
 */
@Override
boolean handleResponse(JmDNSImpl dns) {
  if (dns.getLocalHost().conflictWithRecord(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: javax.jmdns/jmdns

/**
 * Does the necessary actions, when this as a response.
 */
@Override
boolean handleResponse(JmDNSImpl dns) {
  if (dns.getLocalHost().conflictWithRecord(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: javax.jmdns/jmdns

dns.getLocalHost().incrementHostName();
dns.getCache().clear();
for (ServiceInfo serviceInfo : dns.getServices().values()) {
origin: org.jmdns/jmdns

dns.getLocalHost().incrementHostName();
dns.getCache().clear();
for (ServiceInfo serviceInfo : dns.getServices().values()) {
origin: DeviceConnect/DeviceConnect-Android

dns.getLocalHost().incrementHostName();
dns.getCache().clear();
for (ServiceInfo serviceInfo : dns.getServices().values()) {
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.implHostInfoincrementHostName

Popular methods of HostInfo

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

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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