|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static java.lang.String |
code_id
This is public only so that it can be contained in an interface. |
Method Summary | |
boolean |
checkBreak()
|
java.lang.Object |
getProperty(java.lang.String name)
|
void |
monitorDeath(java.lang.Throwable throes)
A task must signal a fatal exception. |
void |
monitorDone(WavesetResult res)
A task must signal completion by returning its result. |
void |
monitorErrorData(PersistentObject po)
|
void |
monitorErrorData(PersistentObject po,
java.lang.String actionTaken)
|
void |
monitorErrorData(java.lang.String s)
|
void |
monitorErrorMsg(Message msg)
|
void |
monitorErrorMsg(java.lang.String msg)
|
void |
monitorErrorMsg(java.lang.Throwable e)
|
void |
monitorInputData(PersistentObject po)
|
void |
monitorInputData(PersistentObject po,
java.lang.String actionTaken)
|
void |
monitorInputData(java.lang.String s)
|
void |
monitorOutputData(PersistentObject po)
|
void |
monitorOutputData(PersistentObject po,
java.lang.String actionTaken)
|
void |
monitorOutputData(java.lang.String s)
|
void |
monitorOutputMsg(Message msg)
|
void |
monitorOutputMsg(java.lang.String msg)
|
void |
monitorProgress(java.lang.String msg)
A task may report (terse) progress such as "Extracted 127 of 129 accounts read.". |
void |
monitorWarningMsg(Message msg)
|
void |
monitorWarningMsg(java.lang.String msg)
|
void |
monitorWarningMsg(java.lang.Throwable e)
|
void |
setMonitorProgress(boolean b)
|
void |
setMonitorSeverity(Severity severity)
Specify the threshold for monitoring. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
Field Detail |
public static final java.lang.String code_id
Method Detail |
public void monitorDone(WavesetResult res)
public void monitorDeath(java.lang.Throwable throes)
This allows the monitor to free any resources, as well as to report the untimely death of the subject task in a standard way.
public boolean checkBreak()
public void monitorProgress(java.lang.String msg)
This information is placed in the persistent task instance so that summary status information is available from any server in a load-balanced environment.
public void setMonitorProgress(boolean b)
public void setMonitorSeverity(Severity severity)
If the threshold is null
Severity.OK
(the default), then everything will be monitored.
Setting the threshold to Severity.WARNING
will suppress informational messages.
Setting the threshold to Severity.ERROR
will suppress both informational and warning messages.
Setting the threshold to null
suppresses
all of informational, warning, and non-fatal error messages.
NOTE: This threshold does not affect the behavior of monitorDone, monitorDeath, checkBreak, or monitorProgress.
public void monitorInputData(PersistentObject po)
public void monitorInputData(PersistentObject po, java.lang.String actionTaken)
public void monitorInputData(java.lang.String s)
public void monitorOutputData(PersistentObject po)
public void monitorOutputData(PersistentObject po, java.lang.String actionTaken)
public void monitorOutputData(java.lang.String s)
public void monitorOutputMsg(Message msg)
public void monitorOutputMsg(java.lang.String msg)
public void monitorErrorData(PersistentObject po)
public void monitorErrorData(PersistentObject po, java.lang.String actionTaken)
public void monitorErrorData(java.lang.String s)
public void monitorErrorMsg(Message msg)
public void monitorErrorMsg(java.lang.Throwable e)
public void monitorErrorMsg(java.lang.String msg)
public void monitorWarningMsg(Message msg)
public void monitorWarningMsg(java.lang.Throwable e)
public void monitorWarningMsg(java.lang.String msg)
public void setProperty(java.lang.String name, java.lang.Object value)
public java.lang.Object getProperty(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |