org.apache.jetspeed.daemon.impl
Class BadURLManagerDaemon

java.lang.Object
  extended byorg.apache.jetspeed.daemon.impl.BadURLManagerDaemon
All Implemented Interfaces:
Daemon, java.lang.Runnable

public class BadURLManagerDaemon
extends java.lang.Object
implements Daemon

Manages pulling URLs from the BadURLManager, and if they are available, removing them from the BadURLManager and placing them in the DiskCache.

Version:
$Id: BadURLManagerDaemon.java,v 1.14 2004/02/23 02:48:05 jford Exp $
Author:
Kevin A. Burton

Field Summary
 
Fields inherited from interface org.apache.jetspeed.daemon.Daemon
RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_NOT_PROCESSED, STATUS_NOT_STARTED, STATUS_PROCESSED, STATUS_PROCESSING, STATUS_STARTED, STATUS_UNKNOWN
 
Constructor Summary
BadURLManagerDaemon()
           
 
Method Summary
 DaemonConfig getDaemonConfig()
          Require that Daemons have a getter for the DaemonConfig
 DaemonEntry getDaemonEntry()
          Get the entry for this daemon.
 java.lang.String getMessage()
          Provided so that a Daemon can provide a message to users.
 int getResult()
           Get the result of this daemons processing.
 int getStatus()
          Return the status for this Daemon
 void init(DaemonConfig config, DaemonEntry entry)
          Initialize this daemon providing configuration data.
 void restore()
           
 void run()
          Go over all the documents on the system and if refresh them if necessary.
 void save()
          Require that the BadURLManager save its configuration here.
 void setResult(int result)
          Force the result of this Daemon
 void setStatus(int status)
          Set the status for this Daemon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BadURLManagerDaemon

public BadURLManagerDaemon()
Method Detail

run

public void run()
Go over all the documents on the system and if refresh them if necessary.

Specified by:
run in interface java.lang.Runnable

init

public void init(DaemonConfig config,
                 DaemonEntry entry)
Description copied from interface: Daemon
Initialize this daemon providing configuration data.

Specified by:
init in interface Daemon

getDaemonConfig

public DaemonConfig getDaemonConfig()
Description copied from interface: Daemon
Require that Daemons have a getter for the DaemonConfig

Specified by:
getDaemonConfig in interface Daemon

getDaemonEntry

public DaemonEntry getDaemonEntry()
Description copied from interface: Daemon
Get the entry for this daemon.

Specified by:
getDaemonEntry in interface Daemon

getStatus

public int getStatus()
Return the status for this Daemon

Specified by:
getStatus in interface Daemon
See Also:
Daemon.STATUS_NOT_PROCESSED, Daemon.STATUS_PROCESSED, Daemon.STATUS_PROCESSING

setStatus

public void setStatus(int status)
Set the status for this Daemon

Specified by:
setStatus in interface Daemon
See Also:
Daemon.STATUS_NOT_PROCESSED, Daemon.STATUS_PROCESSED, Daemon.STATUS_PROCESSING

getResult

public int getResult()
Description copied from interface: Daemon

Get the result of this daemons processing. All Daemon implementations are responsible for defining this.

The default for this should be RESULT_UNKNOWN. This usually means that this daemon has never been called for processing.

Specified by:
getResult in interface Daemon
See Also:
Daemon.getResult()

setResult

public void setResult(int result)
Description copied from interface: Daemon
Force the result of this Daemon

Specified by:
setResult in interface Daemon
See Also:
Daemon.setResult(int result)

getMessage

public java.lang.String getMessage()
Description copied from interface: Daemon
Provided so that a Daemon can provide a message to users. Null if it has nothing to give to the user.

Specified by:
getMessage in interface Daemon
See Also:
Daemon.getMessage()

save

public void save()
Require that the BadURLManager save its configuration here.


restore

public void restore()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.