Class MasterRegistrationManagerImpl
java.lang.Object
org.ros.internal.node.server.master.MasterRegistrationManagerImpl
Manages all registration logic for the
MasterServer.
This class is not thread-safe.
- Author:
- khughes@google.com (Keith M. Hughes)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all services registered.Get all topics registered.getNodeRegistrationInfo(GraphName nodeName) Get the information known about a node.getServiceRegistrationInfo(GraphName serviceName) Get the information known about a service.getTopicRegistrationInfo(GraphName topicName) Get the information known about a topic.registerPublisher(GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType) Register a publisher.registerService(GraphName nodeName, URI nodeSlaveUri, GraphName serviceName, URI serviceUri) Register a service.registerSubscriber(GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType) Register a subscriber.booleanunregisterPublisher(GraphName nodeName, GraphName topicName) Unregister a publisher.booleanunregisterService(GraphName nodeName, GraphName serviceName, URI serviceUri) Unregister a service.booleanunregisterSubscriber(GraphName nodeName, GraphName topicName) Unregister a subscriber.
-
Constructor Details
-
MasterRegistrationManagerImpl
-
-
Method Details
-
registerPublisher
public TopicRegistrationInfo registerPublisher(GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType) Register a publisher.- Parameters:
nodeName- name of the node with the publishernodeSlaveUri- URI of the slave server on the nodetopicName- then name of the topictopicMessageType- message type of the topic- Returns:
- The registration information for the topic.
-
unregisterPublisher
Unregister a publisher.- Parameters:
nodeName- name of the node which has the publishertopicName- name of the publisher's topic- Returns:
trueif the publisher was actually registered before the call.
-
registerSubscriber
public TopicRegistrationInfo registerSubscriber(GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType) Register a subscriber.- Parameters:
nodeName- name of the node with the subscribernodeSlaveUri- URI of the slave server on the nodetopicName- then name of the topictopicMessageType- message type of the topic- Returns:
- The registration information for the topic.
-
unregisterSubscriber
Unregister a subscriber.- Parameters:
nodeName- name of the node which has the subscribertopicName- name of the subscriber's topic- Returns:
trueif the subscriber was actually registered before the call.
-
registerService
public ServiceRegistrationInfo registerService(GraphName nodeName, URI nodeSlaveUri, GraphName serviceName, URI serviceUri) Register a service.- Parameters:
nodeName- name of the node with the servicenodeSlaveUri- URI of the slave server on the nodeserviceName- the name of the serviceserviceUri- URI of the service server on the node- Returns:
- The registration information for the service.
-
unregisterService
Unregister a service.- Parameters:
nodeName- name of the node with the serviceserviceName- the name of the serviceserviceUri- URI of the service server on the node- Returns:
trueif the service was actually registered before the call.
-
getAllTopics
Get all topics registered.- Returns:
- An immutable collection of topics.
-
getTopicRegistrationInfo
Get the information known about a topic.- Parameters:
topicName- the name of the topic- Returns:
- The information about the topic. Can be
nullif the topic was never registered.
-
getNodeRegistrationInfo
Get the information known about a node.- Parameters:
nodeName- the name of the node- Returns:
- The information about the node. Can be
nullif no topic was ever registered for the node.
-
getAllServices
Get all services registered.- Returns:
- An immutable collection of services.
-
getServiceRegistrationInfo
Get the information known about a service.- Parameters:
serviceName- the name of the service- Returns:
- The information about the service. Can be
nullif there is no service registered with the given name.
-