@InterfaceAudience.Public
 @InterfaceStability.Evolving
public interface DNSToSwitchMapping
| Modifier and Type | Method and Description | 
|---|---|
void | 
reloadCachedMappings()
Reload all of the cached mappings. 
 | 
void | 
reloadCachedMappings(List<String> names)
Reload cached mappings on specific nodes. 
 | 
List<String> | 
resolve(List<String> names)
Resolves a list of DNS-names/IP-addresses and returns back a list of
 switch information (network paths). 
 | 
List<String> resolve(List<String> names)
 If a name cannot be resolved to a rack, the implementation
 should return NetworkTopology.DEFAULT_RACK. This
 is what the bundled implementations do, though it is not a formal requirement
names - the list of hosts to resolve (can be empty)void reloadCachedMappings()
Copyright © 2023 Apache Software Foundation. All rights reserved.