Sun GlassFish Message Queue 4.4 Developer's Guide for JMX Clients

Operations

The destination monitor MBean supports the operations shown in Table 3–41. The names of these operations are defined as static constants in the utility class DestinationOperations.

Table 3–41 Destination Monitor Operations

Name 

Parameters 

Result Type 

Description 

getConnection [Temporary destinations only]

None 

ObjectName

Object name of connection monitor MBean for connection 

getProducerIDs

None 

String[]

Producer identifiers of all current associated message producers

getConsumerIDs

None 

String[]

Consumer identifiers of all current associated message consumers

For queue destinations, this operation returns both active and backup consumers. For topic destinations, it returns both nondurable and (active and inactive) durable subscribers.  

getActiveConsumerIDs

None 

String[]

Consumer identifiers of all current associated active message consumers

For topic destinations, this operation returns both nondurable and (active and inactive) durable subscribers.  

getBackupConsumerIDs [Queue destinations only]

None 

String[]

Consumer identifiers of all current associated backup message consumers

getConsumerWildcards

none 

String[]

Wildcard strings used by current consumers associated with the destination 

For topic destinations only. 

getProducerWildcards

none 

String[]

Wildcard strings used by current producers associated with the destination 

For topic destinations only. 

getWildcards

none 

String[]

Wildcard strings used by current consumers and producers associated with the destination 

For topic destinations only. 

getNumWildcardConsumers

wildcard-String 

Integer

Number of current consumers associated with the destination that are using the specified wildcard string 

For topic destinations only. 

getNumWildcardProducers

wildcard-String 

Integer

Number of current producers associated with the destination that are using the specified wildcard string 

For topic destinations only.