|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface which provides monitoring feedback for long running operations.
Method Summary | |
void |
addTaskListener(TaskListener listener)
This method is used to register a new task listener. |
int |
getCurrentProgress()
This method returns the current progress of the task. |
java.lang.Throwable |
getError()
This method is used to return a reference to the throwable encountered during the performing of the task. |
java.lang.String |
getStatus()
This method is used to return the last status message associated with the task. |
int |
getTaskLength()
This method returns the length of the current task. |
java.util.List |
getTaskListeners()
This method is used to return the list of task listeners. |
boolean |
hasError()
This method returns true if the task encountered any errors. |
boolean |
isComplete()
This method returns true if the task has completed. |
void |
removeTaskListener(TaskListener listener)
This method is used to remove a specific listener. |
void |
requestStop()
This method is used to request that the task be stopped. |
boolean |
shouldStop()
This method returns true if the task has received a request to be cancelled. |
void |
start()
This method is used to start the task. |
Method Detail |
public boolean shouldStop()
public boolean isComplete()
public boolean hasError()
public int getTaskLength()
public int getCurrentProgress()
public java.lang.Throwable getError()
public java.lang.String getStatus()
public void start()
public void requestStop()
public void addTaskListener(TaskListener listener)
listener
- the listener to addpublic java.util.List getTaskListeners()
public void removeTaskListener(TaskListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |