Package org.elasticsearch.discovery
Class SettingsBasedSeedHostsProvider
java.lang.Object
org.elasticsearch.discovery.SettingsBasedSeedHostsProvider
- All Implemented Interfaces:
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]-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.discovery.SeedHostsProvider
SeedHostsProvider.HostsResolver
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionSettingsBasedSeedHostsProvider
(Settings settings, TransportService transportService) -
Method Summary
Modifier and TypeMethodDescriptiongetSeedAddresses
(SeedHostsProvider.HostsResolver hostsResolver) Returns a list of seed hosts to use for discovery.
-
Field Details
-
LEGACY_DISCOVERY_ZEN_PING_UNICAST_HOSTS_SETTING
-
DISCOVERY_SEED_HOSTS_SETTING
-
-
Constructor Details
-
SettingsBasedSeedHostsProvider
-
-
Method Details
-
getSeedAddresses
Description copied from interface:SeedHostsProvider
Returns a list of seed hosts to use for discovery. Called repeatedly while discovery is active (i.e. while there is no master) so that this list may be dynamic.- Specified by:
getSeedAddresses
in interfaceSeedHostsProvider
-