Class Hierarchy All Classes All Fields and Methods

Class com.ibm.broker.config.proxy.SubscriptionQuery

java.lang.Object
        com.ibm.broker.config.proxy.SubscriptionQuery

public class SubscriptionQuery
extends Object

This class allows applications to query the subscriptions a broker currently holds. There is an example of how the class can be used:

     ConfigManagerConnectionParameters cmcp =
         new MQConfigManagerConnectionParameters("localhost", 1414, "QMGR");
     ConfigManagerProxy cmp = ConfigManagerProxy.getInstance(cmcp);
     TopologyProxy tp = cmp.getTopology();
     BrokerProxy bp = tp.getBrokerByName("BROKER1");
     SubscriptionQuery sq = bp.createSubscriptionQuery();
     sq.setString(SubscriptionParameters.TOPIC, "topicA");
     SubscriptionsProxy sp = sq.executeQuery();
 

Field Index
Field Description
copyright IBM Copyright
sccsid Version information
Method Index
Method Description
SubscriptionsProxy executeQuery() Executes the subscription query specified by this SubscriptionQuery object against the broker.
void setBytes(String, byte[]) Sets a parameter of type byte[] in this SubscriptionQuery object.
void setDate(String, GregorianCalendar) Sets a parameter of type GregorianCalendar in this SubscriptionQuery object.
void setQueryLimit(int) Sets the query limit for this SubscriptionQuery.
void setString(String, String) Sets a parameter of type java.lang.String in this SubscriptionQuery object.

Fields

copyright

protected static final java.lang.String copyright

IBM Copyright

sccsid

protected static final java.lang.String sccsid

Version information

Methods

executeQuery

public SubscriptionsProxy executeQuery() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException

Executes the subscription query specified by this SubscriptionQuery object against the broker.

setBytes

public void setBytes(String parameterName,
                     byte[] bytes) 

Sets a parameter of type byte[] in this SubscriptionQuery object. The parameter must one of the byte[] parameters declarded in the class SubscriptionParameter.

setDate

public void setDate(String parameterName,
                    GregorianCalendar date) 

Sets a parameter of type GregorianCalendar in this SubscriptionQuery object. The parameter must one of the GregorianCalendar parameters declarded in the class SubscriptionParameters.

setQueryLimit

public void setQueryLimit(int queryLimit) 

Sets the query limit for this SubscriptionQuery. This sets the maxium number of subscription objects that will be returned when the query is executed.

setString

public void setString(String parameterName,
                      String string) 

Sets a parameter of type java.lang.String in this SubscriptionQuery object. The parameter must one of the java.lang.String parameters declarded in the class SubscriptionParameter.

Class Hierarchy All Classes All Fields and Methods