Public Member Functions
org.ros.node.NodeListener Interface Reference
Inheritance diagram for org.ros.node.NodeListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void onError (Node node, Throwable throwable)
void onShutdown (Node node)
void onShutdownComplete (Node node)
void onStart (ConnectedNode connectedNode)

Detailed Description

A listener for lifecycle events on a Node.

Author:
khughes@google.com (Keith M. Hughes)

Definition at line 24 of file NodeListener.java.


Member Function Documentation

void org.ros.node.NodeListener.onError ( Node  node,
Throwable  throwable 
)

Called when the Node experiences an unrecoverable error.

Parameters:
nodethe Node that experienced the error
throwablethe Throwable describing the error condition

Implemented in org.ros.node.DefaultNodeMainExecutor.RegistrationListener, org.ros.MessageSerializationTestNode, org.ros.node.AbstractNodeMain, and org.ros.node.DefaultNodeListener.

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.

Parameters:
nodethe 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.


The documentation for this interface was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51