org.apache.hadoop.util
Class HostsFileReader

java.lang.Object
  extended by org.apache.hadoop.util.HostsFileReader

public class HostsFileReader
extends Object


Constructor Summary
HostsFileReader(String inFile, String exFile)
           
 
Method Summary
 Set<String> getExcludedHosts()
           
 Set<String> getHosts()
           
 void refresh()
           
 void setExcludesFile(String excludesFile)
           
 void setIncludesFile(String includesFile)
           
 void updateFileNames(String includesFile, String excludesFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostsFileReader

public HostsFileReader(String inFile,
                       String exFile)
                throws IOException
Throws:
IOException
Method Detail

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