Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
org.ros.internal.node.server.master.MasterRegistrationManagerImpl Class Reference

List of all members.

Public Member Functions

Collection
< ServiceRegistrationInfo
getAllServices ()
Collection< TopicRegistrationInfogetAllTopics ()
NodeRegistrationInfo getNodeRegistrationInfo (GraphName nodeName)
ServiceRegistrationInfo getServiceRegistrationInfo (GraphName serviceName)
TopicRegistrationInfo getTopicRegistrationInfo (GraphName topicName)
 MasterRegistrationManagerImpl (MasterRegistrationListener listener)
TopicRegistrationInfo registerPublisher (GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType)
ServiceRegistrationInfo registerService (GraphName nodeName, URI nodeSlaveUri, GraphName serviceName, URI serviceUri)
TopicRegistrationInfo registerSubscriber (GraphName nodeName, URI nodeSlaveUri, GraphName topicName, String topicMessageType)
boolean unregisterPublisher (GraphName nodeName, GraphName topicName)
boolean unregisterService (GraphName nodeName, GraphName serviceName, URI serviceUri)
boolean unregisterSubscriber (GraphName nodeName, GraphName topicName)

Private Member Functions

void cleanupNode (NodeRegistrationInfo node)
NodeRegistrationInfo obtainNodeRegistrationInfo (GraphName nodeName, URI nodeSlaveUri)
TopicRegistrationInfo obtainTopicRegistrationInfo (GraphName topicName, boolean shouldCreate)
void potentiallyDeleteNode (NodeRegistrationInfo node)

Private Attributes

final MasterRegistrationListener listener
final Map< GraphName,
NodeRegistrationInfo
nodes
final Map< GraphName,
ServiceRegistrationInfo
services
final Map< GraphName,
TopicRegistrationInfo
topics

Static Private Attributes

static final Log log = LogFactory.getLog(MasterRegistrationManagerImpl.class)

Detailed Description

Manages all registration logic for the MasterServer.

This class is not thread-safe.

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

Definition at line 41 of file MasterRegistrationManagerImpl.java.


Constructor & Destructor Documentation

Definition at line 67 of file MasterRegistrationManagerImpl.java.


Member Function Documentation

A node is being replaced. Clean it up. This includes unregistering from topic objects.

Parameters:
nodethe node being replaced

Definition at line 452 of file MasterRegistrationManagerImpl.java.

Get all services registered.

Returns:
An immutable collection of services.

Definition at line 368 of file MasterRegistrationManagerImpl.java.

Get all topics registered.

Returns:
An immutable collection of topics.

Definition at line 333 of file MasterRegistrationManagerImpl.java.

Get the information known about a node.

Parameters:
nodeNamethe name of the node
Returns:
The information about the node. Can be
 null 
if no topic was ever registered for the node.

Definition at line 359 of file MasterRegistrationManagerImpl.java.

Get the information known about a service.

Parameters:
serviceNamethe name of the service
Returns:
The information about the service. Can be
 null 
if there is no service registered with the given name.

Definition at line 381 of file MasterRegistrationManagerImpl.java.

Get the information known about a topic.

Parameters:
topicNamethe name of the topic
Returns:
The information about the topic. Can be
 null 
if the topic was never registered.

Definition at line 346 of file MasterRegistrationManagerImpl.java.

Get the NodeRegistrationInfo for the given node slave identifier.

Parameters:
nodeNamethe name of the node
nodeSlaveUrithe URI for the node's slave server
Returns:
The registration info for the node. A new one will be created if none exists.

Definition at line 418 of file MasterRegistrationManagerImpl.java.

Get the TopicRegistrationInfo for the given topic name.

Parameters:
topicNamethe name of the topic
shouldCreate
 true 
if a new one should be created if it isn't found
Returns:
The registration info for the topic. A new one will be created if none exists and on.

Definition at line 396 of file MasterRegistrationManagerImpl.java.

Remove a node from registration if it no longer has any registrations.

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

Parameters:
nodeNamename of the node with the publisher
nodeSlaveUriURI of the slave server on the node
topicNamethen name of the topic
topicMessageTypemessage type of the topic
Returns:
The registration information for 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.

Parameters:
nodeNamename of the node with the service
nodeSlaveUriURI of the slave server on the node
serviceNamethe name of the service
serviceUriURI of the service server on the node
Returns:
The registration information for the service.

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.

Parameters:
nodeNamename of the node with the subscriber
nodeSlaveUriURI of the slave server on the node
topicNamethen name of the topic
topicMessageTypemessage type of the topic
Returns:
The registration information for the topic.

Definition at line 165 of file MasterRegistrationManagerImpl.java.

Unregister a publisher.

Parameters:
nodeNamename of the node which has the publisher
topicNamename of the publisher's topic
Returns:
 true 
if the publisher was actually registered before the call.

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.

Parameters:
nodeNamename of the node with the service
serviceNamethe name of the service
serviceUriURI of the service server on the node
Returns:
 true 
if the service was actually registered before the call.

Definition at line 289 of file MasterRegistrationManagerImpl.java.

Unregister a subscriber.

Parameters:
nodeNamename of the node which has the subscriber
topicNamename of the subscriber's topic
Returns:
 true 
if the subscriber was actually registered before the call.

Definition at line 192 of file MasterRegistrationManagerImpl.java.


Member Data Documentation

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.

A map from node names to the information about the mode.

Definition at line 48 of file MasterRegistrationManagerImpl.java.

A Map from the name of the ServiceServer to the ServiceIdentifier.

Definition at line 54 of file MasterRegistrationManagerImpl.java.

A Map from TopicSystemState name to the TopicRegistrationInfo about the topic.

Definition at line 60 of file MasterRegistrationManagerImpl.java.


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


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