org.openprivacy.reptile.search.tasks
Class SearchGCTask

java.lang.Object
  |
  +--org.openprivacy.reptile.tasks.BaseTask
        |
        +--org.openprivacy.reptile.search.tasks.SearchGCTask
All Implemented Interfaces:
Task

public class SearchGCTask
extends BaseTask
implements Task

Handles garbage collecting all SearchProviders.

Version:
$Id: SearchGCTask.java,v 1.2 2001/12/30 01:54:54 burton Exp $
Author:
burtonator

Field Summary
static long PROVIDER_MAX_GC_TIME
          The maximum amount of time that a provider should around for.
 
Fields inherited from interface org.openprivacy.reptile.tasks.Task
MESSAGE_SUCCESSFUL, STATE_FAILED, STATE_PAUSED, STATE_RUNNING, STATE_STOPPED, TYPE_OCS, TYPE_RSS, TYPE_UNKNOWN
 
Constructor Summary
SearchGCTask()
          Create a new SearchGCTask instance.
 
Method Summary
 void run()
          Just like a runnable but we can throw an Exception.
 
Methods inherited from class org.openprivacy.reptile.tasks.BaseTask
getIdentifier, getInterval, getLastMessage, getLastRan, getState, getType, isRunning, requireNotStale, setIdentifier, setInterval, setLastMessage, setLastMessage, setLastRan, setState, setType, stale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openprivacy.reptile.tasks.Task
getIdentifier, getInterval, getLastMessage, getLastRan, getState, getType, isRunning, setIdentifier, setInterval, setLastMessage, setLastMessage, setLastRan, setState, setType
 

Field Detail

PROVIDER_MAX_GC_TIME

public static final long PROVIDER_MAX_GC_TIME
The maximum amount of time that a provider should around for. By default this is 300000 milliseconds or 5 minutes.

See Also:
Constant Field Values
Constructor Detail

SearchGCTask

public SearchGCTask()
Create a new SearchGCTask instance.

Method Detail

run

public void run()
Description copied from interface: Task
Just like a runnable but we can throw an Exception.

Specified by:
run in interface Task