org.archive.wayback.accesscontrol.staticmap
Class StaticMapExclusionFilterFactory

java.lang.Object
  extended by 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

Constructor Summary
StaticMapExclusionFilterFactory()
           
 
Method Summary
 ExclusionFilter get()
           
 int getCheckInterval()
           
 String getFile()
           
 void init()
          load exclusion file and startup polling thread to check for updates
protected  Map<String,Object> loadFile(String path)
           
protected  void reloadFile()
           
 void setCheckInterval(int checkInterval)
           
 void setFile(String path)
           
 void shutdown()
          close any resources used by this ExclusionFilter system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticMapExclusionFilterFactory

public StaticMapExclusionFilterFactory()
Method Detail

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.