Using IceStorm

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

2 min read

Now we'll expand on the earlier weather monitoring example, and discuss how to create a publisher and a subscriber.

Publishers, subscribers and administrative tools use the following operations of the TopicManager and Topic interfaces:

OperationDescription
TopicManager::createOrRetrieve
Returns a proxy to the topic with the given name, creating this topic first if it does not exist.
TopicManager::create
Creates a topic, and throws TopicExists if a topic with this name exists.
TopicManager::retrieve
Returns a proxy to an existing topic, and throws NoSuchTopic if no topic has this name.
TopicManager::retrieveAll
Returns proxies to all the topics of the topic manager, keyed by name.
Topic::getPublisher, Topic::getNonReplicatedPublisher
Return a proxy to the topic's publisher object.
Topic::subscribeAndGetPublisher
Subscribes a subscriber object, and returns a proxy to its per-subscriber publisher.
Topic::unsubscribe
Removes the subscription of a subscriber object.
Topic::getName, Topic::getSubscribers
Return the name of the topic, and the identities of its subscribers.
Topic::link, Topic::unlink, Topic::getLinkInfoSeq
Create, destroy and list the links of a federated topic.
Topic::destroy
Destroys the topic.