|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple interface to create Daemons within Jetspeed. These are basically threads that get work done to facilitate content serving.
Field Summary | |
static int |
RESULT_FAILED
A daemon has processed but it has failed |
static int |
RESULT_PROCESSING
A daemon is processing so its result is not yet known |
static int |
RESULT_SUCCESS
A daemon has processed and it was successful |
static int |
RESULT_UNKNOWN
The result for this daemon is not yet known. |
static int |
STATUS_NOT_PROCESSED
|
static int |
STATUS_NOT_STARTED
|
static int |
STATUS_PROCESSED
|
static int |
STATUS_PROCESSING
|
static int |
STATUS_STARTED
|
static int |
STATUS_UNKNOWN
|
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()
Report on the status of this daemon. |
void |
init(DaemonConfig config,
DaemonEntry entry)
Initialize this daemon providing configuration data. |
void |
setResult(int result)
Force the result of this Daemon |
void |
setStatus(int status)
Force the status on this Daemon |
Methods inherited from interface java.lang.Runnable |
run |
Field Detail |
public static final int STATUS_UNKNOWN
public static final int STATUS_NOT_PROCESSED
public static final int STATUS_PROCESSED
public static final int STATUS_PROCESSING
public static final int STATUS_NOT_STARTED
public static final int STATUS_STARTED
public static final int RESULT_UNKNOWN
public static final int RESULT_SUCCESS
public static final int RESULT_FAILED
public static final int RESULT_PROCESSING
Method Detail |
public void init(DaemonConfig config, DaemonEntry entry)
public DaemonConfig getDaemonConfig()
public int getStatus()
public void setStatus(int status)
public DaemonEntry getDaemonEntry()
public int getResult()
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.
public void setResult(int result)
public java.lang.String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |