|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.DefaultOperationObserver
The DefaultOperationObserver
represents an observer
of several tasks in one operation, which remembers the succeeded
and failed tasks.
Field Summary | |
protected java.util.Vector |
failed_list
The list of failed tasks. |
protected java.util.Vector |
succeeded_list
The list of succeeded tasks. |
protected java.util.Vector |
warned_list
The list of warned tasks. |
Constructor Summary | |
DefaultOperationObserver()
|
Method Summary | |
java.util.Vector |
getFailedList()
Gets the list of failed tasks. |
java.util.Vector |
getSucceededList()
Gets the list of succeeded tasks. |
java.util.Vector |
getWarnedList()
Gets the list of warned tasks. |
void |
notifyEnd(java.lang.Exception exception)
Invoked when the operation ends. |
void |
notifyFailed(java.lang.Object arg)
Invoked when a task is failed. |
void |
notifyStart()
Invoked when the operation starts. |
void |
notifySucceeded(java.lang.Object arg)
Invoked when a task is succeeded. |
void |
notifyWarned(java.lang.Object arg)
Invoked when a task is warned. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.util.Vector succeeded_list
protected java.util.Vector failed_list
protected java.util.Vector warned_list
Constructor Detail |
public DefaultOperationObserver()
Method Detail |
public void notifyStart()
public void notifyEnd(java.lang.Exception exception)
exception
- the exception if an error occurs, or null if
succeeded.public void notifySucceeded(java.lang.Object arg)
arg
- the argument.public void notifyFailed(java.lang.Object arg)
arg
- the argument.public void notifyWarned(java.lang.Object arg)
arg
- the argument.public java.util.Vector getSucceededList()
public java.util.Vector getFailedList()
public java.util.Vector getWarnedList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |