Package org.opensearch.discovery
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
Modifier and TypeInterfaceDescriptionstatic interface
Helper object that allows to resolve a list of hosts to a list of transport addresses. -
Method Summary
Modifier and TypeMethodDescriptionList
<org.opensearch.core.common.transport.TransportAddress> getSeedAddresses
(SeedHostsProvider.HostsResolver hostsResolver) 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.
-