Public Member Functions | |
void | execute (NodeMain nodeMain, NodeConfiguration nodeConfiguration, Collection< NodeListener > nodeListeners) |
void | execute (NodeMain nodeMain, NodeConfiguration nodeConfiguration) |
ScheduledExecutorService | getScheduledExecutorService () |
void | shutdown () |
void | shutdownNodeMain (NodeMain nodeMain) |
Executes NodeMains and allows shutting down individual NodeMains or all currently running NodeMains as a group.
Definition at line 29 of file NodeMainExecutor.java.
void org.ros.node.NodeMainExecutor.execute | ( | NodeMain | nodeMain, |
NodeConfiguration | nodeConfiguration, | ||
Collection< NodeListener > | nodeListeners | ||
) |
Executes the supplied NodeMain using the supplied NodeConfiguration.
nodeMain | the NodeMain to execute |
nodeConfiguration | the NodeConfiguration that will be used to create the Node |
nodeListeners | a Collection of NodeListeners to be added to the Node before it starts, can be null |
void org.ros.node.NodeMainExecutor.execute | ( | NodeMain | nodeMain, |
NodeConfiguration | nodeConfiguration | ||
) |
Executes the supplied NodeMain using the supplied NodeConfiguration.
nodeMain | the NodeMain to execute |
nodeConfiguration | the NodeConfiguration that will be used to create the Node |
Implemented in org.ros.node.DefaultNodeMainExecutor.
ScheduledExecutorService org.ros.node.NodeMainExecutor.getScheduledExecutorService | ( | ) |
Implemented in org.ros.node.DefaultNodeMainExecutor.
Shutdown all started Nodes. This does not shut down the supplied ExecutorService.
Implemented in org.ros.node.DefaultNodeMainExecutor.
void org.ros.node.NodeMainExecutor.shutdownNodeMain | ( | NodeMain | nodeMain | ) |
Shuts down the supplied NodeMain (i.e. NodeMain#onShutdown(Node) will be called). This does not necessarily shut down the Node that is associated with the NodeMain.
This has no effect if the NodeMain has not started.
nodeMain | the NodeMain to shutdown |
Implemented in org.ros.node.DefaultNodeMainExecutor.