Class DNS_PING

    • Field Detail

      • dns_context_factory

        protected java.lang.String dns_context_factory
      • dns_address

        protected java.lang.String dns_address
      • dns_record_type

        protected java.lang.String dns_record_type
      • dns_query

        protected java.lang.String dns_query
      • probe_transport_ports

        protected boolean probe_transport_ports
      • dns_resolver

        protected volatile DNSResolver dns_resolver
    • Constructor Detail

      • DNS_PING

        public DNS_PING()
    • Method Detail

      • init

        public void init()
                  throws java.lang.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:
        java.lang.Exception - Thrown if protocol cannot be initialized successfully. This will cause the ProtocolStack to fail, so the the channel constructor will throw an exception
      • setDNSQuery

        public DNS_PING setDNSQuery​(java.lang.String query)
      • getDNSContextFactory

        public java.lang.String getDNSContextFactory()
      • getDNSAddress

        public java.lang.String getDNSAddress()
      • validateProperties

        protected void validateProperties()
      • fetchFromDns

        public java.lang.String fetchFromDns()
      • findMembers

        public void findMembers​(java.util.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)