Interface NetworkSelector
- All Known Implementing Classes:
NetworkSelector.AutoNetworkSelector
Helps the config parser select the correct alternate addresses.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkSelector
autoDetect
(Set<SeedNode> seedNodes) static NetworkSelector
create
(NetworkResolution network, Set<SeedNode> seedNodes)
-
Field Details
-
DEFAULT
-
EXTERNAL
-
-
Method Details
-
selectNetwork
-
create
- Parameters:
network
- The config parser's final output will include only addresses for the specified network. PassNetworkResolution.AUTO
to apply a heuristic that selects the network based on the bootstrap addresses provided by the user.seedNodes
- Addresses that were used to bootstrap the connector. May be empty if network is notNetworkResolution.AUTO
. IMPORTANT: In this context, an absent port means that port should not be used for address matching. Caller is responsible for supplying default ports, if applicable.
-
autoDetect
-