Method Summary
|
getName |
|
start |
Do all things in this call to setup the task.
Normally all resources needed by this task are locked.
|
|
end |
After the task is completly done, call end to free all resources
occupied by the task.
Normally all resources locked by this task are unlocked.
|
|
terminate |
A call of this method indicates that the task should terminate.
This call results in a listener finished call with reason CANCEL.
If the task is not started, than only finished and no running is called.
|
|
run |
Do the action specified by the task. Call the listener method running at the beginng and
the method finished with reason OK at the end. If an error occured the reason is ERROR and
if the action is terminated than CANCEL is the reason.
|
|
addTaskListener |
Add a task listener. If the task is already running, than the running method is called.
|
|
removeTaskListener |
Remove a task listener.
|
|
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.