public class NodeRegistrationInfo
extends java.lang.Object
Constructor and Description |
---|
NodeRegistrationInfo(GraphName nodeName,
java.net.URI nodeSlaveUri) |
Modifier and Type | Method and Description |
---|---|
void |
addPublisher(TopicRegistrationInfo publisherTopic)
Add a new publisher to the node.
|
void |
addService(ServiceRegistrationInfo service)
Add a new service to the node.
|
void |
addSubscriber(TopicRegistrationInfo subscriberTopic)
Add a new subscriber to the node.
|
boolean |
equals(java.lang.Object obj) |
GraphName |
getNodeName() |
java.net.URI |
getNodeSlaveUri() |
java.util.Set<TopicRegistrationInfo> |
getPublishers()
Get all known topics published by the node.
|
java.util.Set<ServiceRegistrationInfo> |
getServices()
Get all known services provided by the node.
|
java.util.Set<TopicRegistrationInfo> |
getSubscribers()
Get all known topics subscribed to by the node.
|
int |
hashCode() |
boolean |
hasRegistrations()
Does the node have any registrations of any sort.
|
boolean |
removePublisher(TopicRegistrationInfo publisherTopic)
Remove a publisher from the node.
|
boolean |
removeService(ServiceRegistrationInfo service)
Remove a service from the node.
|
boolean |
removeSubscriber(TopicRegistrationInfo subscriberTopic)
Remove a subscriber from the node.
|
public NodeRegistrationInfo(GraphName nodeName, java.net.URI nodeSlaveUri)
public GraphName getNodeName()
public java.net.URI getNodeSlaveUri()
public boolean hasRegistrations()
public java.util.Set<TopicRegistrationInfo> getPublishers()
public void addPublisher(TopicRegistrationInfo publisherTopic)
publisherTopic
- the topic information about the publisher to addpublic boolean removePublisher(TopicRegistrationInfo publisherTopic)
publisherTopic
- the topic information about the publisher to removetrue
if the publisher had been therepublic java.util.Set<TopicRegistrationInfo> getSubscribers()
public void addSubscriber(TopicRegistrationInfo subscriberTopic)
subscriberTopic
- the topic information about the subscriber to addpublic boolean removeSubscriber(TopicRegistrationInfo subscriberTopic)
subscriberTopic
- the topic information about the subscriber to removetrue
if the subscriber had been therepublic java.util.Set<ServiceRegistrationInfo> getServices()
public void addService(ServiceRegistrationInfo service)
service
- the service to addpublic boolean removeService(ServiceRegistrationInfo service)
service
- the service to removetrue
if the subscriber had been therepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object