@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Unstable public class HostsFileReader extends Object
Constructor and Description |
---|
HostsFileReader(String inFile,
String exFile) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getExcludedHosts() |
Set<String> |
getHosts() |
static void |
readFileToSet(String type,
String filename,
Set<String> set) |
void |
refresh() |
void |
setExcludesFile(String excludesFile) |
void |
setIncludesFile(String includesFile) |
void |
updateFileNames(String includesFile,
String excludesFile) |
public HostsFileReader(String inFile, String exFile) throws IOException
IOException
public static void readFileToSet(String type, String filename, Set<String> set) throws IOException
IOException
public void refresh() throws IOException
IOException
public void setIncludesFile(String includesFile)
public void setExcludesFile(String excludesFile)
public void updateFileNames(String includesFile, String excludesFile) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.