|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeListener
A listener for lifecycle events on a Node
.
Method Summary | |
---|---|
void |
onError(Node node,
java.lang.Throwable throwable)
Called when the Node experiences an unrecoverable error. |
void |
onShutdown(Node node)
Called when the ConnectedNode has started shutting down. |
void |
onShutdownComplete(Node node)
Called when the Node has shut down. |
void |
onStart(ConnectedNode connectedNode)
Called when the Node has started and successfully connected to the
master. |
Method Detail |
---|
void onStart(ConnectedNode connectedNode)
Node
has started and successfully connected to the
master.
connectedNode
- the ConnectedNode
that has been startedvoid onShutdown(Node node)
ConnectedNode
has started shutting down. Shutdown
will be delayed, although not indefinitely, until all NodeListener
s
have returned from this method.
Since this method can potentially delay ConnectedNode
shutdown, it
is preferred to use onShutdownComplete(Node)
when
ConnectedNode
resources are not required during the method call.
node
- the Node
that has started shutting downvoid onShutdownComplete(Node node)
Node
has shut down.
node
- the Node
that has shut downvoid onError(Node node, java.lang.Throwable throwable)
Node
experiences an unrecoverable error.
node
- the Node
that experienced the errorthrowable
- the Throwable
describing the error condition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |