|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.daemon.impl.DiskCacheDaemon
A daemon that takes all instances of the DiskCacheDaemon and makes sure that any content entries get updated on a regular basis.
| 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 | |
DiskCacheDaemon()
|
|
| 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)
Init this Daemon from the DaemonFactory |
void |
run()
Go over all the documents on the system and if refresh them if necessary. |
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 DiskCacheDaemon()
| Method Detail |
public void run()
run in interface java.lang.Runnable
public void init(DaemonConfig config,
DaemonEntry entry)
init in interface DaemonDaemon.init(org.apache.jetspeed.daemon.DaemonConfig, org.apache.jetspeed.daemon.DaemonEntry)public DaemonConfig getDaemonConfig()
Daemon
getDaemonConfig in interface Daemonpublic DaemonEntry getDaemonEntry()
Daemon
getDaemonEntry in interface Daemonpublic int getStatus()
getStatus in interface DaemonDaemon.STATUS_NOT_PROCESSED,
Daemon.STATUS_PROCESSED,
Daemon.STATUS_PROCESSINGpublic void setStatus(int status)
setStatus in interface DaemonDaemon.STATUS_NOT_PROCESSED,
Daemon.STATUS_PROCESSED,
Daemon.STATUS_PROCESSINGpublic int getResult()
DaemonGet 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 DaemonDaemon.getResult()public void setResult(int result)
Daemon
setResult in interface DaemonDaemon.setResult(int result)public java.lang.String getMessage()
Daemon
getMessage in interface DaemonDaemon.getMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||