cgl.narada.topology.viewer
Class Subscription

java.lang.Object
  extended by cgl.narada.topology.viewer.Subscription

public class Subscription
extends Object

Represents a subscription request (to a broker) by a client


Constructor Summary
Subscription(int clientId, String clientType)
          Only constructor
 
Method Summary
 void addTopic(String t)
          Adds a topic into the list associated with a client's subscription
 void deleteAllTopics()
          Deletes all the topics associated with client's subscription.
 void deleteTopic(String t)
          Deletes the specified topic from the list associated with a client's subscription.
 String getTopic(String t)
          Fetches a topic from the topic list assiciated with the client's subscription.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription(int clientId,
                    String clientType)
Only constructor

Method Detail

addTopic

public void addTopic(String t)
Adds a topic into the list associated with a client's subscription

Parameters:
t - String representation of a topic.

deleteTopic

public void deleteTopic(String t)
                 throws TopologyException
Deletes the specified topic from the list associated with a client's subscription.

Parameters:
t - String representation of a topic.
Throws:
TopologyException - if the specified topic does not exist

deleteAllTopics

public void deleteAllTopics()
Deletes all the topics associated with client's subscription.


getTopic

public String getTopic(String t)
Fetches a topic from the topic list assiciated with the client's subscription.

Parameters:
t - String representation of the topic to be fetched.
Returns:
String representation of the topic. null if the specified topic is not found.


For comments and suggestions please send e-mail to The NaradaBrokering Project