public class StaticListExclusionFilterFactory extends Object implements ExclusionFilterFactory
Constructor and Description |
---|
StaticListExclusionFilterFactory() |
Modifier and Type | Method and Description |
---|---|
ExclusionFilter |
get() |
int |
getCheckInterval() |
String |
getFile() |
void |
init()
load exclusion file and startup polling thread to check for updates
|
protected TreeSet<String> |
loadFile(String path) |
protected void |
reloadFile() |
void |
setCheckInterval(int checkInterval) |
void |
setFile(String path) |
void |
shutdown()
close any resources used by this ExclusionFilter system.
|
public void init() throws IOException
IOException
- if the exclusion file could not be read.protected void reloadFile() throws IOException
IOException
protected TreeSet<String> loadFile(String path) throws IOException
IOException
public ExclusionFilter get()
get
in interface ExclusionFilterFactory
public int getCheckInterval()
public void setCheckInterval(int checkInterval)
checkInterval
- the checkInterval in seconds to setpublic String getFile()
public void setFile(String path)
path
- the file to setpublic void shutdown()
ExclusionFilterFactory
shutdown
in interface ExclusionFilterFactory
Copyright © 2005–2017 IIPC. All rights reserved.