@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
IOExceptionpublic static void readFileToSet(String type, String filename, Set<String> set) throws IOException
IOExceptionpublic void refresh()
throws IOException
IOExceptionpublic void setIncludesFile(String includesFile)
public void setExcludesFile(String excludesFile)
public void updateFileNames(String includesFile, String excludesFile) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.