Class DNSRecord.HostInformation

  • Enclosing class:
    DNSRecord

    public static class DNSRecord.HostInformation
    extends DNSRecord
    • Constructor Detail

      • HostInformation

        public HostInformation​(java.lang.String name,
                               DNSRecordClass recordClass,
                               boolean unique,
                               int ttl,
                               java.lang.String cpu,
                               java.lang.String os)
        Parameters:
        name -
        recordClass -
        unique -
        ttl -
        cpu -
        os -
    • Method Detail

      • isSingleValued

        public boolean isSingleValued()
        Description copied from class: DNSRecord
        Determine if a record can have multiple values in the cache.
        Specified by:
        isSingleValued in class DNSRecord
        Returns:
        false if this record can have multiple values in the cache, true otherwise.
      • getServiceInfo

        public ServiceInfo getServiceInfo​(boolean persistent)
        Description copied from class: DNSRecord
        Return a service information associated with that record if appropriate.
        Specified by:
        getServiceInfo in class DNSRecord
        Parameters:
        persistent - if true ServiceListener.resolveService will be called whenever new new information is received.
        Returns:
        service information
      • getServiceEvent

        public ServiceEvent getServiceEvent​(JmDNSImpl dns)
        Description copied from class: DNSRecord
        Creates and return a service event for this record.
        Specified by:
        getServiceEvent in class DNSRecord
        Parameters:
        dns - DNS serviced by this event
        Returns:
        service event
      • toString

        protected void toString​(java.lang.StringBuilder sb)
        Overrides:
        toString in class DNSRecord