Public Member Functions | |
void | onError (Node node, Throwable throwable) |
void | onShutdown (Node node) |
void | onShutdownComplete (Node node) |
void | onStart (ConnectedNode connectedNode) |
A listener for lifecycle events on a Node.
Definition at line 24 of file NodeListener.java.
void org.ros.node.NodeListener.onError | ( | Node | node, |
Throwable | throwable | ||
) |
Called when the Node experiences an unrecoverable error.
node | the Node that experienced the error |
throwable | the Throwable describing the error condition |
Implemented in org.ros.node.DefaultNodeMainExecutor.RegistrationListener, org.ros.MessageSerializationTestNode, org.ros.node.AbstractNodeMain, and org.ros.node.DefaultNodeListener.
void org.ros.node.NodeListener.onShutdown | ( | Node | node | ) |
Called when the ConnectedNode has started shutting down. Shutdown will be delayed, although not indefinitely, until all NodeListeners 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 down |
Implemented in org.ros.node.DefaultNodeMainExecutor.RegistrationListener, org.ros.MessageSerializationTestNode, org.ros.node.AbstractNodeMain, and org.ros.node.DefaultNodeListener.
void org.ros.node.NodeListener.onShutdownComplete | ( | Node | node | ) |
Called when the Node has shut down.
node | the Node that has shut down |
Implemented in org.ros.node.DefaultNodeMainExecutor.RegistrationListener, org.ros.MessageSerializationTestNode, org.ros.node.AbstractNodeMain, and org.ros.node.DefaultNodeListener.
void org.ros.node.NodeListener.onStart | ( | ConnectedNode | connectedNode | ) |
Called when the Node has started and successfully connected to the master.
connectedNode | the ConnectedNode that has been started |
Implemented in org.ros.node.DefaultNodeMainExecutor.RegistrationListener, org.ros.ParameterServerTestNode, org.ros.rosjava_tutorial_pubsub.Listener, org.ros.MessageSerializationTestNode, org.ros.rosjava_tutorial_services.Server, org.ros.rosjava_tutorial_right_hand_rule.RightHandRule, org.ros.node.AbstractNodeMain, and org.ros.node.DefaultNodeListener.