@InterfaceAudience.Public @InterfaceStability.Evolving public class TableMapping extends CachedDNSToSwitchMapping
 Simple DNSToSwitchMapping implementation that reads a 2 column text
 file. The columns are separated by whitespace. The first column is a DNS or
 IP address and the second column specifies the rack where the address maps.
 
 This class uses the configuration parameter net.topology.table.file.name to locate the mapping file.
 
 Calls to CachedDNSToSwitchMapping.resolve(List) will look up the address as defined in the
 mapping file. If no entry corresponding to the address is found, the value
 /default-rack is returned.
 
rawMapping| コンストラクタと説明 | 
|---|
TableMapping()  | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
Configuration | 
getConf()
Return the configuration used by this object. 
 | 
void | 
reloadCachedMappings()
Reload all of the cached mappings. 
 | 
void | 
setConf(Configuration conf)
Set the configuration to be used by this object. 
 | 
getSwitchMap, isSingleSwitch, reloadCachedMappings, resolve, toStringdumpTopology, isMappingSingleSwitch, isSingleSwitchByScriptPolicypublic TableMapping()
public Configuration getConf()
ConfigurablegetConf インタフェース内 ConfigurablegetConf クラス内 AbstractDNSToSwitchMappingpublic void setConf(Configuration conf)
ConfigurablesetConf インタフェース内 ConfigurablesetConf クラス内 AbstractDNSToSwitchMappingpublic void reloadCachedMappings()
DNSToSwitchMappingreloadCachedMappings インタフェース内 DNSToSwitchMappingreloadCachedMappings クラス内 CachedDNSToSwitchMappingCopyright © 2016 Apache Software Foundation. All rights reserved.