|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionMonitor
An application-level listener to know when an execution is activated,
deactivated, or waiting for activation.
In addition, it also monitors the processing of an event, such that
it can be used to monitor the performance of the processing of events
(while PerformanceMeter
monitors the AU requests).
Notice that the same listener is used for the whole application. Make sure it is thread-safe and the performance is good. In additions, don't throw any exception, and don't hold a reference to execution.
If you hold references to desktops, remember to clean them up
when desktopDestroy(org.zkoss.zk.ui.Desktop)
is called.
PerformanceMeter
Method Summary | |
---|---|
void |
desktopDestroy(Desktop desktop)
Called when a desktop is destroyed. |
void |
eventComplete(Event event)
Called when the processing of the given event completes. |
void |
eventResume(Event event)
Called when the processing of the given event resumes. |
void |
eventStart(Event event)
Called when the processing of the given event starts. |
void |
eventSuspend(Event event)
Called when the processing of the given event suspends. |
void |
executionAbort(Execution exec,
Desktop desktop,
java.lang.Throwable t)
Called when the activation of the given execution is aborted. |
void |
executionActivate(Execution exec,
Desktop desktop)
Called when an execution is activated. |
void |
executionDeactivate(Execution exec,
Desktop desktop)
Called when an activated execution completes and is deactivated. |
void |
executionWait(Execution exec,
Desktop desktop)
Called when an execution fails to activate and then being waiting for activation. |
Method Detail |
---|
void executionActivate(Execution exec, Desktop desktop)
void executionWait(Execution exec, Desktop desktop)
Since 5.0, the AU requests are blocked at the client if ZK is busy for processing an AU request. Thus, this method is rarely called.
void executionDeactivate(Execution exec, Desktop desktop)
void executionAbort(Execution exec, Desktop desktop, java.lang.Throwable t)
t
- the exception causing the abort, or null if it is aborted
normally.void desktopDestroy(Desktop desktop)
void eventStart(Event event)
Executions.getCurrent()
.
void eventComplete(Event event)
Executions.getCurrent()
.
void eventSuspend(Event event)
Executions.getCurrent()
.
void eventResume(Event event)
Executions.getCurrent()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |