|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RecoveryListener
A service can register a RecoveryListener to be notified
when that service on the local node needs to recover for the
service on a failed node.
WatchdogService.addRecoveryListener(RecoveryListener)| Method Summary | |
|---|---|
void |
recover(Node node,
SimpleCompletionHandler handler)
Notifies this listener that the specified node has failed
and that this listener needs to orchestrate recovery. |
| Method Detail |
|---|
void recover(Node node,
SimpleCompletionHandler handler)
node has failed
and that this listener needs to orchestrate recovery. This method
is invoked outside of a transaction.
When recovery for this listener for the specified node is
complete, the completed
method of the specified handler must be invoked.
Recovery does not need to be performed in this method, but may be performed asynchronously.
The implementation of this method should be idempotent because it
may be invoked multiple times. If it is invoked multiple times, the
completed method must be
called for each handler provided.
node - a failed node to recoverhandler - a handler to notify when recovery is complete
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||