com.ibm.broker.config.proxy
Class Subscription

java.lang.Object
  extended by com.ibm.broker.config.proxy.Subscription
Direct Known Subclasses:
MQSubscription

public class Subscription
extends java.lang.Object

Each Subscription object represents a single topic subscription on a broker. Subscription objects are returned as results from SubscriptionProxy queries.

com.ibm.broker.config.proxy.Subscription

Responsibilities Represents a single read-only entry from the Subscription table.
Internal Collaborators None

 Change Activity:
 -------- ----------- -------------   ------------------------------------
 Reason:  Date:       Originator:     Comments:
 -------- ----------- -------------   ------------------------------------
 25103.1  2004-04-22  HDMPL           v6 Release
 44739.7  2007-07-30  HDMPL           v6.1 release (no changes)
 
 

Version:
Config/com/ibm/broker/config/proxy/Subscription.java, CMP, S000 1.23

Method Summary
 void delete(SubscriptionsProxy owningProxy)
          Asks the Configuration Manager to delete the supplied subscription.
 java.lang.String getBroker()
          Returns the broker field for the current subscription
 java.lang.String getClient()
          Returns the client field for the current subscription
 java.lang.String getFilter()
          Returns the filter field for the current subscription
 java.util.Date getRegistrationDate()
          Returns the registration date for the current subscription
static Subscription getSubscriptionFromString(java.lang.String encodedData)
          Returns a new Subscription object that contains the information described in the encoded String.
 java.lang.String getSubscriptionPoint()
          Returns the subscription point field for the current subscription
 java.lang.String getTopicName()
          Returns the topicname field for the current subscription
 java.lang.String getUser()
          Returns the user field for the current subscription
 java.lang.String toString()
          Displays information on the subscription (for trace)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTopicName

public java.lang.String getTopicName()
Returns the topicname field for the current subscription

Returns:
String Translated topicname field

getUser

public java.lang.String getUser()
Returns the user field for the current subscription

Returns:
String user field

getSubscriptionPoint

public java.lang.String getSubscriptionPoint()
Returns the subscription point field for the current subscription

Returns:
String subscription point field

getRegistrationDate

public java.util.Date getRegistrationDate()
Returns the registration date for the current subscription

Returns:
Date registration date field

getClient

public java.lang.String getClient()
Returns the client field for the current subscription

Returns:
String client field

getFilter

public java.lang.String getFilter()
Returns the filter field for the current subscription

Returns:
String filter field

getBroker

public java.lang.String getBroker()
Returns the broker field for the current subscription

Returns:
String broker field

delete

public void delete(SubscriptionsProxy owningProxy)
            throws ConfigManagerProxyLoggedException
Asks the Configuration Manager to delete the supplied subscription.

Note: Any response message from the Configuration Manager resulting from this method will be sent to listeners of the ConfigManagerProxy object, because Subscriptions and SubscriptionsProxies cannot have AdministeredObjectListeners.

Parameters:
owningProxy - Proxy that can be used to route the delete request to the Configuration Manager.
Throws:
ConfigManagerProxyLoggedException - If the request could not be sent to the Configuration Manager.

getSubscriptionFromString

public static Subscription getSubscriptionFromString(java.lang.String encodedData)
Returns a new Subscription object that contains the information described in the encoded String.

Parameters:
encodedData - String encoded in the format used by the SubscriptionsProxy.
Returns:
Subscription Representation of the input string

toString

public java.lang.String toString()
Displays information on the subscription (for trace)

Overrides:
toString in class java.lang.Object
Returns:
String The format is not guaranteed