org.apache.hadoop.util
Class MachineList.InetAddressFactory
java.lang.Object
org.apache.hadoop.util.MachineList.InetAddressFactory
- Enclosing class:
- MachineList
public static class MachineList.InetAddressFactory
- extends Object
InetAddressFactory is used to obtain InetAddress from host.
This class makes it easy to simulate host to ip mappings during testing.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MachineList.InetAddressFactory
public MachineList.InetAddressFactory()
getByName
public InetAddress getByName(String host)
throws UnknownHostException
- Throws:
UnknownHostException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.