Interface SeedHostsProvider

All Known Implementing Classes:
FileBasedSeedHostsProvider, SettingsBasedSeedHostsProvider

public interface SeedHostsProvider
A pluggable provider of the list of seed hosts to use for discovery.
Opensearch.internal:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Helper object that allows to resolve a list of hosts to a list of transport addresses.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.opensearch.core.common.transport.TransportAddress>
    Returns a list of seed hosts to use for discovery.
  • Method Details

    • getSeedAddresses

      List<org.opensearch.core.common.transport.TransportAddress> getSeedAddresses(SeedHostsProvider.HostsResolver hostsResolver)
      Returns a list of seed hosts to use for discovery. Called repeatedly while discovery is active (i.e. while there is no cluster-manager) so that this list may be dynamic.