public class MasterRegistrationManagerImpl
extends java.lang.Object
MasterServer.
This class is not thread-safe.
| Constructor and Description |
|---|
MasterRegistrationManagerImpl(MasterRegistrationListener listener) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MasterRegistrationManagerImpl(MasterRegistrationListener listener)
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 topicpublic boolean unregisterPublisher(GraphName nodeName, GraphName topicName)
nodeName - name of the node which has the publishertopicName - name of the publisher's topictrue 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 topicpublic boolean unregisterSubscriber(GraphName nodeName, GraphName topicName)
nodeName - name of the node which has the subscribertopicName - name of the subscriber's topictrue 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 nodepublic 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 nodetrue 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 topicnull if the topic
was never registered.public NodeRegistrationInfo getNodeRegistrationInfo(GraphName nodeName)
nodeName - the name of the nodenull 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 servicenull if there is
no service registered with the given name.