Manages all registration logic for the MasterServer.
This class is not thread-safe.
Definition at line 41 of file MasterRegistrationManagerImpl.java.
org.ros.internal.node.server.master.MasterRegistrationManagerImpl.MasterRegistrationManagerImpl | ( | MasterRegistrationListener | listener | ) | [inline] |
Definition at line 67 of file MasterRegistrationManagerImpl.java.
void org.ros.internal.node.server.master.MasterRegistrationManagerImpl.cleanupNode | ( | NodeRegistrationInfo | node | ) | [inline, private] |
A node is being replaced. Clean it up. This includes unregistering from topic objects.
node | the node being replaced |
Definition at line 452 of file MasterRegistrationManagerImpl.java.
Collection<ServiceRegistrationInfo> org.ros.internal.node.server.master.MasterRegistrationManagerImpl.getAllServices | ( | ) | [inline] |
Get all services registered.
Definition at line 368 of file MasterRegistrationManagerImpl.java.
Collection<TopicRegistrationInfo> org.ros.internal.node.server.master.MasterRegistrationManagerImpl.getAllTopics | ( | ) | [inline] |
Get all topics registered.
Definition at line 333 of file MasterRegistrationManagerImpl.java.
NodeRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.getNodeRegistrationInfo | ( | GraphName | nodeName | ) | [inline] |
Get the information known about a node.
nodeName | the name of the node |
null
Definition at line 359 of file MasterRegistrationManagerImpl.java.
ServiceRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.getServiceRegistrationInfo | ( | GraphName | serviceName | ) | [inline] |
Get the information known about a service.
serviceName | the name of the service |
null
Definition at line 381 of file MasterRegistrationManagerImpl.java.
TopicRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.getTopicRegistrationInfo | ( | GraphName | topicName | ) | [inline] |
Get the information known about a topic.
topicName | the name of the topic |
null
Definition at line 346 of file MasterRegistrationManagerImpl.java.
NodeRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.obtainNodeRegistrationInfo | ( | GraphName | nodeName, |
URI | nodeSlaveUri | ||
) | [inline, private] |
Get the NodeRegistrationInfo for the given node slave identifier.
nodeName | the name of the node |
nodeSlaveUri | the URI for the node's slave server |
Definition at line 418 of file MasterRegistrationManagerImpl.java.
TopicRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.obtainTopicRegistrationInfo | ( | GraphName | topicName, |
boolean | shouldCreate | ||
) | [inline, private] |
Get the TopicRegistrationInfo for the given topic name.
topicName | the name of the topic |
shouldCreate | true
|
Definition at line 396 of file MasterRegistrationManagerImpl.java.
void org.ros.internal.node.server.master.MasterRegistrationManagerImpl.potentiallyDeleteNode | ( | NodeRegistrationInfo | node | ) | [inline, private] |
Remove a node from registration if it no longer has any registrations.
node | the node to possibly remove |
Definition at line 472 of file MasterRegistrationManagerImpl.java.
TopicRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.registerPublisher | ( | GraphName | nodeName, |
URI | nodeSlaveUri, | ||
GraphName | topicName, | ||
String | topicMessageType | ||
) | [inline] |
Register a publisher.
nodeName | name of the node with the publisher |
nodeSlaveUri | URI of the slave server on the node |
topicName | then name of the topic |
topicMessageType | message type of the topic |
Definition at line 88 of file MasterRegistrationManagerImpl.java.
ServiceRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.registerService | ( | GraphName | nodeName, |
URI | nodeSlaveUri, | ||
GraphName | serviceName, | ||
URI | serviceUri | ||
) | [inline] |
Register a service.
nodeName | name of the node with the service |
nodeSlaveUri | URI of the slave server on the node |
serviceName | the name of the service |
serviceUri | URI of the service server on the node |
Definition at line 238 of file MasterRegistrationManagerImpl.java.
TopicRegistrationInfo org.ros.internal.node.server.master.MasterRegistrationManagerImpl.registerSubscriber | ( | GraphName | nodeName, |
URI | nodeSlaveUri, | ||
GraphName | topicName, | ||
String | topicMessageType | ||
) | [inline] |
Register a subscriber.
nodeName | name of the node with the subscriber |
nodeSlaveUri | URI of the slave server on the node |
topicName | then name of the topic |
topicMessageType | message type of the topic |
Definition at line 165 of file MasterRegistrationManagerImpl.java.
boolean org.ros.internal.node.server.master.MasterRegistrationManagerImpl.unregisterPublisher | ( | GraphName | nodeName, |
GraphName | topicName | ||
) | [inline] |
Unregister a publisher.
nodeName | name of the node which has the publisher |
topicName | name of the publisher's topic |
true
Definition at line 115 of file MasterRegistrationManagerImpl.java.
boolean org.ros.internal.node.server.master.MasterRegistrationManagerImpl.unregisterService | ( | GraphName | nodeName, |
GraphName | serviceName, | ||
URI | serviceUri | ||
) | [inline] |
Unregister a service.
nodeName | name of the node with the service |
serviceName | the name of the service |
serviceUri | URI of the service server on the node |
true
Definition at line 289 of file MasterRegistrationManagerImpl.java.
boolean org.ros.internal.node.server.master.MasterRegistrationManagerImpl.unregisterSubscriber | ( | GraphName | nodeName, |
GraphName | topicName | ||
) | [inline] |
Unregister a subscriber.
nodeName | name of the node which has the subscriber |
topicName | name of the subscriber's topic |
true
Definition at line 192 of file MasterRegistrationManagerImpl.java.
final MasterRegistrationListener org.ros.internal.node.server.master.MasterRegistrationManagerImpl.listener [private] |
A listener for master registration events.
Definition at line 65 of file MasterRegistrationManagerImpl.java.
final Log org.ros.internal.node.server.master.MasterRegistrationManagerImpl.log = LogFactory.getLog(MasterRegistrationManagerImpl.class) [static, private] |
Definition at line 43 of file MasterRegistrationManagerImpl.java.
final Map<GraphName, NodeRegistrationInfo> org.ros.internal.node.server.master.MasterRegistrationManagerImpl.nodes [private] |
A map from node names to the information about the mode.
Definition at line 48 of file MasterRegistrationManagerImpl.java.
final Map<GraphName, ServiceRegistrationInfo> org.ros.internal.node.server.master.MasterRegistrationManagerImpl.services [private] |
A Map from the name of the ServiceServer to the ServiceIdentifier.
Definition at line 54 of file MasterRegistrationManagerImpl.java.
final Map<GraphName, TopicRegistrationInfo> org.ros.internal.node.server.master.MasterRegistrationManagerImpl.topics [private] |
A Map from TopicSystemState name to the TopicRegistrationInfo about the topic.
Definition at line 60 of file MasterRegistrationManagerImpl.java.