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 java.lang.Object
implements ExclusionFilterFactory

Version:
$Date$, $Revision$
Author:
brad

Constructor Summary
StaticMapExclusionFilterFactory()
           
 
Method Summary
 ObjectFilter<CaptureSearchResult> get()
           
 int getCheckInterval()
           
 java.lang.String getFile()
           
 void init()
          load exclusion file and startup polling thread to check for updates
protected  java.util.Map<java.lang.String,java.lang.Object> loadFile(java.lang.String path)
           
protected  void reloadFile()
           
 void setCheckInterval(int checkInterval)
           
 void setFile(java.lang.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 java.io.IOException
load exclusion file and startup polling thread to check for updates

Throws:
java.io.IOException

reloadFile

protected void reloadFile()
                   throws java.io.IOException
Throws:
java.io.IOException

loadFile

protected java.util.Map<java.lang.String,java.lang.Object> loadFile(java.lang.String path)
                                                             throws java.io.IOException
Throws:
java.io.IOException

get

public ObjectFilter<CaptureSearchResult> get()
Specified by:
get in interface ExclusionFilterFactory
Parameters:
wbRequest -
Returns:
SearchResultFilter

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 java.lang.String getFile()
Returns:
the path

setFile

public void setFile(java.lang.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-2009 Internet Archive. All Rights Reserved.