Class DNS_PING

All Implemented Interfaces:
Lifecycle

public class DNS_PING extends Discovery
  • Field Details

    • dns_context_factory

      protected String dns_context_factory
    • dns_address

      protected String dns_address
    • dns_record_type

      protected String dns_record_type
    • dns_query

      protected String dns_query
    • probe_transport_ports

      protected boolean probe_transport_ports
    • dns_resolver

      protected volatile DNSResolver dns_resolver
  • Constructor Details

    • DNS_PING

      public DNS_PING()
  • Method Details

    • init

      public void init() throws Exception
      Description copied from class: Protocol
      Called after a protocol has been created and before the protocol is started. Attributes are already set. Other protocols are not yet connected and events cannot yet be sent.
      Specified by:
      init in interface Lifecycle
      Overrides:
      init in class Discovery
      Throws:
      Exception - Thrown if protocol cannot be initialized successfully. This will cause the ProtocolStack to fail, so the the channel constructor will throw an exception
    • dnsResolver

      public DNSResolver dnsResolver()
    • dnsResolver

      public DNS_PING dnsResolver(DNSResolver r)
    • setDNSResolver

      public DNS_PING setDNSResolver(DNSResolver r)
    • getDNSResolver

      public DNSResolver getDNSResolver(DNSResolver ignored)
    • dnsQuery

      public String dnsQuery()
    • dnsQuery

      public DNS_PING dnsQuery(String q)
    • setDNSQuery

      public DNS_PING setDNSQuery(String q)
    • getDNSQuery

      public String getDNSQuery()
    • dnsRecordType

      public String dnsRecordType()
    • dnsRecordType

      public DNS_PING dnsRecordType(String t)
    • dnsAddress

      public String dnsAddress()
    • dnsAddress

      public DNS_PING dnsAddress(String a)
    • getDNSAddress

      public String getDNSAddress()
    • setDNSAddress

      public DNS_PING setDNSAddress(String a)
    • dnsContextFactory

      public String dnsContextFactory()
    • dnsContextFactory

      public DNS_PING dnsContextFactory(String f)
    • getDNSContextFactory

      public String getDNSContextFactory()
    • setDNSContextFactory

      public DNS_PING setDNSContextFactory(String f)
    • validateProperties

      protected void validateProperties()
    • destroy

      public void destroy()
      Description copied from class: Protocol
      This method is called on a JChannel.close(). Does some cleanup; after the call, the VM will terminate
      Specified by:
      destroy in interface Lifecycle
      Overrides:
      destroy in class Protocol
    • isDynamic

      public boolean isDynamic()
      Specified by:
      isDynamic in class Discovery
    • fetchFromDns

      public String fetchFromDns()
    • findMembers

      public void findMembers(List<Address> members, boolean initial_discovery, Responses responses)
      Description copied from class: Discovery
      Fetches information (e.g. physical address, logical name) for the given member addresses. Needs to add responses to the Responses object. If Discovery.async_discovery is true, this method will be called in a separate thread, otherwise the caller's thread will be used.
      Specified by:
      findMembers in class Discovery
      Parameters:
      members - A list of logical addresses (typically UUIDs). If null, then information for all members is fetched
      initial_discovery - Set to true if this is for the initial membership discovery. Some protocols (e.g. file based ones) may return only the information for the coordinator(s).
      responses - The list to which responses should be added
    • sendDiscoveryRequest

      protected void sendDiscoveryRequest(Message req)