|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Daemon
Daemon.init(org.apache.jetspeed.daemon.DaemonConfig, org.apache.jetspeed.daemon.DaemonEntry)
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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |