Class SettingsBasedSeedHostsProvider

  • All Implemented Interfaces:
    SeedHostsProvider

    public class SettingsBasedSeedHostsProvider
    extends java.lang.Object
    implements SeedHostsProvider
    An implementation of SeedHostsProvider that reads hosts/ports from the "discovery.seed_hosts" node setting. If the port is left off an entry, we default to the first port in the transport.port range. An example setting might look as follows: [67.81.244.10, 67.81.244.11:9305, 67.81.244.15:9400]
    • Field Detail

      • LEGACY_DISCOVERY_ZEN_PING_UNICAST_HOSTS_SETTING

        public static final Setting<java.util.List<java.lang.String>> LEGACY_DISCOVERY_ZEN_PING_UNICAST_HOSTS_SETTING
      • DISCOVERY_SEED_HOSTS_SETTING

        public static final Setting<java.util.List<java.lang.String>> DISCOVERY_SEED_HOSTS_SETTING
    • Constructor Detail

      • SettingsBasedSeedHostsProvider

        public SettingsBasedSeedHostsProvider​(Settings settings,
                                              TransportService transportService)