|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.net.ScriptBasedMapping
public final class ScriptBasedMapping
This class implements the DNSToSwitchMapping
interface using a
script configured via topology.script.file.name .
Constructor Summary | |
---|---|
ScriptBasedMapping()
|
Method Summary | |
---|---|
Configuration |
getConf()
Return the configuration used by this object. |
List<String> |
resolve(List<String> names)
Resolves a list of DNS-names/IP-addresses and returns back a list of switch information (network paths). |
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptBasedMapping()
Method Detail |
---|
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
public List<String> resolve(List<String> names)
DNSToSwitchMapping
resolve
in interface DNSToSwitchMapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |