|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.net.AbstractDNSToSwitchMapping
org.apache.hadoop.net.ScriptBasedMapping.RawScriptBasedMapping
protected static class ScriptBasedMapping.RawScriptBasedMapping
This is the uncached script mapping that is fed into the cache managed
by the superclass CachedDNSToSwitchMapping
| Constructor Summary | |
|---|---|
ScriptBasedMapping.RawScriptBasedMapping()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isSingleSwitch()
Declare that the mapper is single-switched if a script was not named in the configuration. |
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). |
protected String |
runResolveCommand(List<String> args,
String commandScriptName)
Build and execute the resolution command. |
void |
setConf(Configuration conf)
Set the configuration and extract the configuration parameters of interest |
String |
toString()
|
| Methods inherited from class org.apache.hadoop.net.AbstractDNSToSwitchMapping |
|---|
dumpTopology, getConf, getSwitchMap, isMappingSingleSwitch, isSingleSwitchByScriptPolicy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptBasedMapping.RawScriptBasedMapping()
setConf(Configuration) has been called
| Method Detail |
|---|
public void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class AbstractDNSToSwitchMappingconf - the new configurationpublic List<String> resolve(List<String> names)
DNSToSwitchMappingNetworkTopology.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)
protected String runResolveCommand(List<String> args,
String commandScriptName)
args - a list of arguments
public boolean isSingleSwitch()
isSingleSwitch in class AbstractDNSToSwitchMappingpublic String toString()
toString in class Objectpublic void reloadCachedMappings()
DNSToSwitchMapping
public void reloadCachedMappings(List<String> names)
DNSToSwitchMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||