Class SeedHostsResolver

    • Field Detail

      • LEGACY_DISCOVERY_ZEN_PING_UNICAST_CONCURRENT_CONNECTS_SETTING

        public static final Setting<java.lang.Integer> LEGACY_DISCOVERY_ZEN_PING_UNICAST_CONCURRENT_CONNECTS_SETTING
      • LEGACY_DISCOVERY_ZEN_PING_UNICAST_HOSTS_RESOLVE_TIMEOUT

        public static final Setting<TimeValue> LEGACY_DISCOVERY_ZEN_PING_UNICAST_HOSTS_RESOLVE_TIMEOUT
      • DISCOVERY_SEED_RESOLVER_MAX_CONCURRENT_RESOLVERS_SETTING

        public static final Setting<java.lang.Integer> DISCOVERY_SEED_RESOLVER_MAX_CONCURRENT_RESOLVERS_SETTING
      • DISCOVERY_SEED_RESOLVER_TIMEOUT_SETTING

        public static final Setting<TimeValue> DISCOVERY_SEED_RESOLVER_TIMEOUT_SETTING
    • Method Detail

      • getMaxConcurrentResolvers

        public static int getMaxConcurrentResolvers​(Settings settings)
      • getResolveTimeout

        public static TimeValue getResolveTimeout​(Settings settings)
      • resolveHostsLists

        public static java.util.List<TransportAddress> resolveHostsLists​(java.util.concurrent.ExecutorService executorService,
                                                                         org.apache.logging.log4j.Logger logger,
                                                                         java.util.List<java.lang.String> hosts,
                                                                         TransportService transportService,
                                                                         TimeValue resolveTimeout)
        Resolves a list of hosts to a list of transport addresses. Each host is resolved into a transport address (or a collection of addresses if the number of ports is greater than one). Host lookups are done in parallel using specified executor service up to the specified resolve timeout.
        Parameters:
        executorService - the executor service used to parallelize hostname lookups
        logger - logger used for logging messages regarding hostname lookups
        hosts - the hosts to resolve
        transportService - the transport service
        resolveTimeout - the timeout before returning from hostname lookups
        Returns:
        a list of resolved transport addresses