org.archive.wayback.accesscontrol.staticmap
Class StaticMapExclusionFilterFactory
java.lang.Object
org.archive.wayback.accesscontrol.staticmap.StaticMapExclusionFilterFactory
- All Implemented Interfaces:
- ExclusionFilterFactory
public class StaticMapExclusionFilterFactory
- extends Object
- implements ExclusionFilterFactory
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticMapExclusionFilterFactory
public StaticMapExclusionFilterFactory()
init
public void init()
throws IOException
- load exclusion file and startup polling thread to check for updates
- Throws:
IOException - if the exclusion file could not be read.
reloadFile
protected void reloadFile()
throws IOException
- Throws:
IOException
loadFile
protected Map<String,Object> loadFile(String path)
throws IOException
- Throws:
IOException
get
public ExclusionFilter get()
- Specified by:
get in interface ExclusionFilterFactory
- Returns:
- ObjectFilter which blocks CaptureSearchResults in the
exclusion file.
getCheckInterval
public int getCheckInterval()
- Returns:
- the checkInterval in seconds
setCheckInterval
public void setCheckInterval(int checkInterval)
- Parameters:
checkInterval - the checkInterval in seconds to set
getFile
public String getFile()
- Returns:
- the path
setFile
public void setFile(String path)
- Parameters:
path - the file to set
shutdown
public void shutdown()
- Description copied from interface:
ExclusionFilterFactory
- close any resources used by this ExclusionFilter system.
- Specified by:
shutdown in interface ExclusionFilterFactory
Copyright © 2005-2011 Internet Archive. All Rights Reserved.