public class JMSTopicControlImpl extends StandardMBean implements TopicControl
Constructor and Description |
---|
JMSTopicControlImpl(ActiveMQDestination topic,
JMSServerManager jmsServerManager,
AddressControl addressControl,
ManagementService managementService) |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(String binding)
Add the Registry binding to this destination
|
int |
countMessagesForSubscription(String clientID,
String subscriptionName,
String filterStr)
Counts the number of messages in the subscription specified by the specified client ID and subscription name.
|
static String |
createFilterFromJMSSelector(String selectorStr) |
void |
dropAllSubscriptions()
Drops all subscriptions.
|
void |
dropDurableSubscription(String clientID,
String subscriptionName)
Drops the subscription specified by the specified client ID and subscription name.
|
String |
getAddress()
Returns the address corresponding to this destination.
|
int |
getDeliveringCount()
Returns the number of messages that this queue is currently delivering to its consumers.
|
int |
getDurableMessageCount()
Returns the number of messages for all durable subscribers for this topic.
|
int |
getDurableSubscriptionCount()
Returns the number of durable subscribers for this topic.
|
MBeanInfo |
getMBeanInfo() |
long |
getMessageCount()
Returns the number of messages currently in this destination.
|
long |
getMessagesAdded()
Returns the number of messages added to this queue since it was created.
|
String |
getName()
Returns the name of this destination.
|
int |
getNonDurableMessageCount()
Returns the number of messages for all non-durable subscribers for this topic.
|
int |
getNonDurableSubscriptionCount()
Returns the number of non-durable subscribers for this topic.
|
String[] |
getRegistryBindings()
Returns the Registry bindings associated with this topic.
|
int |
getSubscriptionCount()
Returns the number of (durable and non-durable) subscribers for this topic.
|
boolean |
isTemporary()
Returns whether this destination is temporary.
|
Object[] |
listAllSubscriptions()
Lists all the subscriptions for this topic (both durable and non-durable).
|
String |
listAllSubscriptionsAsJSON()
Lists all the subscriptions for this topic (both durable and non-durable) using JSON serialization.
|
Object[] |
listDurableSubscriptions()
Lists all the durable subscriptions for this topic.
|
String |
listDurableSubscriptionsAsJSON()
Lists all the durable subscriptions using JSON serialization.
|
Map<String,Object>[] |
listMessagesForSubscription(String queueName)
Lists all the messages in this queue matching the specified queue representing the subscription.
|
String |
listMessagesForSubscriptionAsJSON(String queueName)
Lists all the messages in this queue matching the specified queue representing the subscription using JSON serialization.
|
Object[] |
listNonDurableSubscriptions()
Lists all the non-durable subscriptions for this topic.
|
String |
listNonDurableSubscriptionsAsJSON()
Lists all the non-durable subscriptions using JSON serialization.
|
int |
removeMessages(String filterStr)
Removed all the messages which matches the specified JMS filter from this destination.
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
public JMSTopicControlImpl(ActiveMQDestination topic, JMSServerManager jmsServerManager, AddressControl addressControl, ManagementService managementService) throws Exception
Exception
public static String createFilterFromJMSSelector(String selectorStr) throws ActiveMQException
ActiveMQException
public void addBinding(String binding) throws Exception
TopicControl
addBinding
in interface TopicControl
Exception
public String[] getRegistryBindings()
TopicControl
getRegistryBindings
in interface TopicControl
public String getName()
DestinationControl
getName
in interface DestinationControl
public boolean isTemporary()
DestinationControl
isTemporary
in interface DestinationControl
public String getAddress()
DestinationControl
getAddress
in interface DestinationControl
public long getMessageCount()
DestinationControl
getMessageCount
in interface DestinationControl
public int getDeliveringCount()
DestinationControl
getDeliveringCount
in interface DestinationControl
public long getMessagesAdded()
DestinationControl
getMessagesAdded
in interface DestinationControl
public int getDurableMessageCount()
TopicControl
getDurableMessageCount
in interface TopicControl
public int getNonDurableMessageCount()
TopicControl
getNonDurableMessageCount
in interface TopicControl
public int getSubscriptionCount()
TopicControl
getSubscriptionCount
in interface TopicControl
public int getDurableSubscriptionCount()
TopicControl
getDurableSubscriptionCount
in interface TopicControl
public int getNonDurableSubscriptionCount()
TopicControl
getNonDurableSubscriptionCount
in interface TopicControl
public Object[] listAllSubscriptions()
TopicControl
listAllSubscriptions
in interface TopicControl
public String listAllSubscriptionsAsJSON() throws Exception
TopicControl
SubscriptionInfo.from(String)
.listAllSubscriptionsAsJSON
in interface TopicControl
Exception
public Object[] listDurableSubscriptions()
TopicControl
listDurableSubscriptions
in interface TopicControl
public String listDurableSubscriptionsAsJSON() throws Exception
TopicControl
SubscriptionInfo.from(String)
.listDurableSubscriptionsAsJSON
in interface TopicControl
Exception
public Object[] listNonDurableSubscriptions()
TopicControl
listNonDurableSubscriptions
in interface TopicControl
public String listNonDurableSubscriptionsAsJSON() throws Exception
TopicControl
SubscriptionInfo.from(String)
.listNonDurableSubscriptionsAsJSON
in interface TopicControl
Exception
public Map<String,Object>[] listMessagesForSubscription(String queueName) throws Exception
TopicControl
listMessagesForSubscription
in interface TopicControl
Exception
public String listMessagesForSubscriptionAsJSON(String queueName) throws Exception
TopicControl
listMessagesForSubscriptionAsJSON
in interface TopicControl
Exception
public int countMessagesForSubscription(String clientID, String subscriptionName, String filterStr) throws Exception
TopicControl
null
or an empty filter will count all messages from this queue.countMessagesForSubscription
in interface TopicControl
Exception
public int removeMessages(String filterStr) throws Exception
DestinationControl
null
or an empty filter will remove all messages from this destination.removeMessages
in interface DestinationControl
Exception
public void dropDurableSubscription(String clientID, String subscriptionName) throws Exception
TopicControl
dropDurableSubscription
in interface TopicControl
Exception
public void dropAllSubscriptions() throws Exception
TopicControl
dropAllSubscriptions
in interface TopicControl
Exception
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
getMBeanInfo
in class StandardMBean
Copyright © 2017 JBoss by Red Hat. All rights reserved.