|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.server.master.MasterRegistrationManagerImpl
public class MasterRegistrationManagerImpl
Manages all registration logic for the MasterServer
.
This class is not thread-safe.
Constructor Summary | |
---|---|
MasterRegistrationManagerImpl(MasterRegistrationListener listener)
|
Method Summary | |
---|---|
java.util.Collection<ServiceRegistrationInfo> |
getAllServices()
Get all services registered. |
java.util.Collection<TopicRegistrationInfo> |
getAllTopics()
Get all topics registered. |
NodeRegistrationInfo |
getNodeRegistrationInfo(GraphName nodeName)
Get the information known about a node. |
ServiceRegistrationInfo |
getServiceRegistrationInfo(GraphName serviceName)
Get the information known about a service. |
TopicRegistrationInfo |
getTopicRegistrationInfo(GraphName topicName)
Get the information known about a topic. |
TopicRegistrationInfo |
registerPublisher(GraphName nodeName,
java.net.URI nodeSlaveUri,
GraphName topicName,
java.lang.String topicMessageType)
Register a publisher. |
ServiceRegistrationInfo |
registerService(GraphName nodeName,
java.net.URI nodeSlaveUri,
GraphName serviceName,
java.net.URI serviceUri)
Register a service. |
TopicRegistrationInfo |
registerSubscriber(GraphName nodeName,
java.net.URI nodeSlaveUri,
GraphName topicName,
java.lang.String topicMessageType)
Register a subscriber. |
boolean |
unregisterPublisher(GraphName nodeName,
GraphName topicName)
Unregister a publisher. |
boolean |
unregisterService(GraphName nodeName,
GraphName serviceName,
java.net.URI serviceUri)
Unregister a service. |
boolean |
unregisterSubscriber(GraphName nodeName,
GraphName topicName)
Unregister a subscriber. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterRegistrationManagerImpl(MasterRegistrationListener listener)
Method Detail |
---|
public TopicRegistrationInfo registerPublisher(GraphName nodeName, java.net.URI nodeSlaveUri, GraphName topicName, java.lang.String topicMessageType)
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
public boolean unregisterPublisher(GraphName nodeName, GraphName topicName)
nodeName
- name of the node which has the publishertopicName
- name of the publisher's topic
true
if the publisher was actually registered before the
call.public TopicRegistrationInfo registerSubscriber(GraphName nodeName, java.net.URI nodeSlaveUri, GraphName topicName, java.lang.String topicMessageType)
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
public boolean unregisterSubscriber(GraphName nodeName, GraphName topicName)
nodeName
- name of the node which has the subscribertopicName
- name of the subscriber's topic
true
if the subscriber was actually registered before the
call.public ServiceRegistrationInfo registerService(GraphName nodeName, java.net.URI nodeSlaveUri, GraphName serviceName, java.net.URI serviceUri)
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
public boolean unregisterService(GraphName nodeName, GraphName serviceName, java.net.URI serviceUri)
nodeName
- name of the node with the serviceserviceName
- the name of the serviceserviceUri
- URI of the service server on the node
true
if the service was actually registered before the
call.public java.util.Collection<TopicRegistrationInfo> getAllTopics()
public TopicRegistrationInfo getTopicRegistrationInfo(GraphName topicName)
topicName
- the name of the topic
null
if the topic
was never registered.public NodeRegistrationInfo getNodeRegistrationInfo(GraphName nodeName)
nodeName
- the name of the node
null
if no topic was
ever registered for the node.public java.util.Collection<ServiceRegistrationInfo> getAllServices()
public ServiceRegistrationInfo getServiceRegistrationInfo(GraphName serviceName)
serviceName
- the name of the service
null
if there is
no service registered with the given name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |