org.apache.hadoop.util
Class HostsFileReader
java.lang.Object
org.apache.hadoop.util.HostsFileReader
public class HostsFileReader
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostsFileReader
public HostsFileReader(String inFile,
String exFile)
throws IOException
- Throws:
IOException
refresh
public void refresh()
throws IOException
- Throws:
IOException
getHosts
public Set<String> getHosts()
getExcludedHosts
public Set<String> getExcludedHosts()
setIncludesFile
public void setIncludesFile(String includesFile)
setExcludesFile
public void setExcludesFile(String excludesFile)
updateFileNames
public void updateFileNames(String includesFile,
String excludesFile)
throws IOException
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation