org.openprivacy.reptile.feeds.tasks
Class FeedUpdateTask

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

public class FeedUpdateTask
extends BaseTask
implements Task

Responsible for updating content with the Proxy, performing any necessary update tasks (DB, whatever) and possibly reparsing their content.

Version:
$Id: FeedUpdateTask.java,v 1.9 2002/03/23 22:31:33 burton Exp $
Author:
burtonator

Field Summary
 
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
FeedUpdateTask(java.lang.String location, java.lang.String contentType)
          Create a new FeedUpdateTask instance.
 
Method Summary
 void run()
          Just like a runnable but we can throw an Exception.
 void update(org.openprivacy.panther.components.ProxyEntry entry)
          Update this content.
 
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
 

Constructor Detail

FeedUpdateTask

public FeedUpdateTask(java.lang.String location,
                      java.lang.String contentType)
Create a new FeedUpdateTask instance.

Method Detail

run

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

Specified by:
run in interface Task
java.lang.Exception

update

public void update(org.openprivacy.panther.components.ProxyEntry entry)
Update this content.

See Also:
ProxyEventListener