org.apache.hadoop.net
Class ScriptBasedMapping
java.lang.Object
org.apache.hadoop.net.CachedDNSToSwitchMapping
org.apache.hadoop.net.ScriptBasedMapping
- All Implemented Interfaces:
- Configurable, DNSToSwitchMapping
public final class ScriptBasedMapping
- extends CachedDNSToSwitchMapping
- implements Configurable
This class implements the DNSToSwitchMapping
interface using a
script configured via topology.script.file.name .
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptBasedMapping
public ScriptBasedMapping()
ScriptBasedMapping
public ScriptBasedMapping(Configuration conf)
getConf
public Configuration getConf()
- Description copied from interface:
Configurable
- Return the configuration used by this object.
- Specified by:
getConf
in interface Configurable
setConf
public void setConf(Configuration conf)
- Description copied from interface:
Configurable
- Set the configuration to be used by this object.
- Specified by:
setConf
in interface Configurable
Copyright © 2009 The Apache Software Foundation