org.jboss.jms.server.destination
Class TopicService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jms.server.destination.DestinationServiceSupport
org.jboss.jms.server.destination.TopicService
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, DestinationMBean, TopicMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean
public class TopicService
- extends DestinationServiceSupport
- implements TopicMBean
A deployable JBoss Messaging topic.
- Version:
- $Revision: 3876 $
$Id: TopicService.java 3876 2008-03-14 14:28:14Z timfox $
- Author:
- Ovidiu Feodorov, Tim Fox, Alex Fu, Juha Lindfors
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.jms.server.destination.DestinationServiceSupport |
getDLQ, getDownCacheSize, getExpiryQueue, getFullSize, getInstance, getJNDIName, getMaxDeliveryAttempts, getMaxSize, getMessageCounterHistoryDayLimit, getName, getPageSize, getRedeliveryDelay, getSecurityConfig, getServerPeer, isClustered, isCreatedProgrammatically, listMessageCounterAsHTML, listMessageCounterHistoryAsHTML, setClustered, setDLQ, setDownCacheSize, setExpiryQueue, setFullSize, setJNDIName, setMaxDeliveryAttempts, setMaxSize, setMessageCounterHistoryDayLimit, setPageSize, setRedeliveryDelay, setSecurityConfig, setServerPeer, toString |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SUBSCRIPTION_MESSAGECOUNTER_PREFIX
public static final java.lang.String SUBSCRIPTION_MESSAGECOUNTER_PREFIX
- See Also:
- Constant Field Values
TopicService
public TopicService()
TopicService
public TopicService(boolean createdProgrammatically)
startService
public void startService()
throws java.lang.Exception
- Overrides:
startService
in class DestinationServiceSupport
- Throws:
java.lang.Exception
stopService
public void stopService()
throws java.lang.Exception
- Overrides:
stopService
in class DestinationServiceSupport
- Throws:
java.lang.Exception
getAllMessageCount
public int getAllMessageCount()
throws java.lang.Exception
- Specified by:
getAllMessageCount
in interface TopicMBean
- Throws:
java.lang.Exception
getDurableMessageCount
public int getDurableMessageCount()
throws java.lang.Exception
- Specified by:
getDurableMessageCount
in interface TopicMBean
- Throws:
java.lang.Exception
getNonDurableMessageCount
public int getNonDurableMessageCount()
throws java.lang.Exception
- Specified by:
getNonDurableMessageCount
in interface TopicMBean
- Throws:
java.lang.Exception
getAllSubscriptionsCount
public int getAllSubscriptionsCount()
throws java.lang.Exception
- All subscription count
- Specified by:
getAllSubscriptionsCount
in interface TopicMBean
- Returns:
- all subscription count
- Throws:
javax.jms.JMSException
java.lang.Exception
getDurableSubscriptionsCount
public int getDurableSubscriptionsCount()
throws java.lang.Exception
- Specified by:
getDurableSubscriptionsCount
in interface TopicMBean
- Throws:
java.lang.Exception
getNonDurableSubscriptionsCount
public int getNonDurableSubscriptionsCount()
throws java.lang.Exception
- Specified by:
getNonDurableSubscriptionsCount
in interface TopicMBean
- Throws:
java.lang.Exception
removeAllMessages
public void removeAllMessages()
throws java.lang.Exception
- Remove all messages from subscription's storage.
- Specified by:
removeAllMessages
in interface DestinationMBean
- Specified by:
removeAllMessages
in interface TopicMBean
- Specified by:
removeAllMessages
in class DestinationServiceSupport
- Throws:
java.lang.Exception
listAllSubscriptions
public java.util.List listAllSubscriptions()
throws java.lang.Exception
- Specified by:
listAllSubscriptions
in interface TopicMBean
- Throws:
java.lang.Exception
listDurableSubscriptions
public java.util.List listDurableSubscriptions()
throws java.lang.Exception
- Specified by:
listDurableSubscriptions
in interface TopicMBean
- Throws:
java.lang.Exception
listNonDurableSubscriptions
public java.util.List listNonDurableSubscriptions()
throws java.lang.Exception
- Specified by:
listNonDurableSubscriptions
in interface TopicMBean
- Throws:
java.lang.Exception
listAllSubscriptionsAsHTML
public java.lang.String listAllSubscriptionsAsHTML()
throws java.lang.Exception
- Specified by:
listAllSubscriptionsAsHTML
in interface TopicMBean
- Throws:
java.lang.Exception
listDurableSubscriptionsAsHTML
public java.lang.String listDurableSubscriptionsAsHTML()
throws java.lang.Exception
- Specified by:
listDurableSubscriptionsAsHTML
in interface TopicMBean
- Throws:
java.lang.Exception
listNonDurableSubscriptionsAsHTML
public java.lang.String listNonDurableSubscriptionsAsHTML()
throws java.lang.Exception
- Specified by:
listNonDurableSubscriptionsAsHTML
in interface TopicMBean
- Throws:
java.lang.Exception
listAllMessages
public java.util.List listAllMessages(java.lang.String subscriptionId)
throws java.lang.Exception
- Specified by:
listAllMessages
in interface TopicMBean
- Throws:
java.lang.Exception
listAllMessages
public java.util.List listAllMessages(java.lang.String subscriptionId,
java.lang.String selector)
throws java.lang.Exception
- Specified by:
listAllMessages
in interface TopicMBean
- Throws:
java.lang.Exception
listDurableMessages
public java.util.List listDurableMessages(java.lang.String subscriptionId)
throws java.lang.Exception
- Specified by:
listDurableMessages
in interface TopicMBean
- Throws:
java.lang.Exception
listDurableMessages
public java.util.List listDurableMessages(java.lang.String subscriptionId,
java.lang.String selector)
throws java.lang.Exception
- Specified by:
listDurableMessages
in interface TopicMBean
- Throws:
java.lang.Exception
listNonDurableMessages
public java.util.List listNonDurableMessages(java.lang.String subscriptionId)
throws java.lang.Exception
- Specified by:
listNonDurableMessages
in interface TopicMBean
- Throws:
java.lang.Exception
listNonDurableMessages
public java.util.List listNonDurableMessages(java.lang.String subscriptionId,
java.lang.String selector)
throws java.lang.Exception
- Specified by:
listNonDurableMessages
in interface TopicMBean
- Throws:
java.lang.Exception
getMessageCounters
public java.util.List getMessageCounters()
throws java.lang.Exception
- Specified by:
getMessageCounters
in interface TopicMBean
- Throws:
java.lang.Exception
isQueue
protected boolean isQueue()
- Specified by:
isQueue
in class DestinationServiceSupport
Copyright © 2006 JBoss Inc. All Rights Reserved.