|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.daemon.impl.BadURLManagerDaemon
Manages pulling URLs from the BadURLManager, and if they are available, removing them from the BadURLManager and placing them in the DiskCache.
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 |
public BadURLManagerDaemon()
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void init(DaemonConfig config, DaemonEntry entry)
Daemon
init
in interface Daemon
public DaemonConfig getDaemonConfig()
Daemon
getDaemonConfig
in interface Daemon
public DaemonEntry getDaemonEntry()
Daemon
getDaemonEntry
in interface Daemon
public int getStatus()
getStatus
in interface Daemon
Daemon.STATUS_NOT_PROCESSED
,
Daemon.STATUS_PROCESSED
,
Daemon.STATUS_PROCESSING
public void setStatus(int status)
setStatus
in interface Daemon
Daemon.STATUS_NOT_PROCESSED
,
Daemon.STATUS_PROCESSED
,
Daemon.STATUS_PROCESSING
public int getResult()
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.
getResult
in interface Daemon
Daemon.getResult()
public void setResult(int result)
Daemon
setResult
in interface Daemon
Daemon.setResult(int result)
public java.lang.String getMessage()
Daemon
getMessage
in interface Daemon
Daemon.getMessage()
public void save()
public void restore()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |