org.apache.hadoop.util
Class MachineList.InetAddressFactory

java.lang.Object
  extended by 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.


Constructor Summary
MachineList.InetAddressFactory()
           
 
Method Summary
 InetAddress getByName(String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MachineList.InetAddressFactory

public MachineList.InetAddressFactory()
Method Detail

getByName

public InetAddress getByName(String host)
                      throws UnknownHostException
Throws:
UnknownHostException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.