|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProcessListener
Receives general indications of process progress and events indicating
start, completion or failure. For any registered listeners,
the Process.call() method shall invoke at least the started and
completed or failed methods (mandatory). Calls to the
progressing method are optional but recommended.
| utility/geotk-utility (download) | View source code for this class |
| Method Summary | |
|---|---|
void |
completed(ProcessEvent event)
Reports that a process has completed successfully. |
void |
failed(ProcessEvent event)
Reports that a process has failed. |
void |
progressing(ProcessEvent event)
Invoked at any time during process progression. |
void |
started(ProcessEvent event)
Reports that a process is beginning. |
| Method Detail |
|---|
void started(ProcessEvent event)
Process implementations
are required to call this method exactly once.
event - The progress event.void progressing(ProcessEvent event)
Process implementations
may invoke this method an arbitrary number of time. In addition to the source,
task name and progress indicator, the event argument may contain the following
optional information:
ProcessEvent.getOutput(), if non-null, indicates an intermediate calculation value.ProcessEvent.getException(), if non-null, indicates a non-fatal warning.
event - The progress event.void completed(ProcessEvent event)
Process implementations
are required to call either this method or failed(ProcessEvent) exactly once.
In addition to the source and task name, the event argument shall contain the following
information:
ProcessEvent.getOutput() is the final result returned by Process.call().
event - The progress event.void failed(ProcessEvent event)
Process implementations are required to call
either this method or completed(ProcessEvent) exactly once. In addition to the
source and task name, the event argument may contain the following optional information:
ProcessEvent.getException(), if non-null, indicates the failure cause.ProcessEvent.getOutput(), if non-null, indicates the calculation state before
the failure.
event - The progress event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||