org.jboss.jms.server.destination
Class QueueService
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.jms.server.destination.DestinationServiceSupport
org.jboss.jms.server.destination.QueueService
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, DestinationMBean, QueueMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean
public class QueueService
- extends DestinationServiceSupport
- implements QueueMBean
MBean wrapper around a ManagedQueue
- Version:
- $Revision: 3876 $
$Id: QueueService.java 3876 2008-03-14 14:28:14Z timfox $
- Author:
- Ovidiu Feodorov, Tim Fox, Alex Fu
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
QueueService
public QueueService()
QueueService
public QueueService(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
getMessageCount
public int getMessageCount()
throws java.lang.Exception
- Specified by:
getMessageCount
in interface QueueMBean
- Throws:
java.lang.Exception
getDeliveringCount
public int getDeliveringCount()
throws java.lang.Exception
- Specified by:
getDeliveringCount
in interface QueueMBean
- Throws:
java.lang.Exception
getScheduledMessageCount
public int getScheduledMessageCount()
throws java.lang.Exception
- Specified by:
getScheduledMessageCount
in interface QueueMBean
- Throws:
java.lang.Exception
getMessageCounter
public MessageCounter getMessageCounter()
- Specified by:
getMessageCounter
in interface QueueMBean
getMessageStatistics
public MessageStatistics getMessageStatistics()
throws java.lang.Exception
- Specified by:
getMessageStatistics
in interface QueueMBean
- Throws:
java.lang.Exception
listMessageCounterAsHTML
public java.lang.String listMessageCounterAsHTML()
- Specified by:
listMessageCounterAsHTML
in interface QueueMBean
getConsumerCount
public int getConsumerCount()
throws java.lang.Exception
- Specified by:
getConsumerCount
in interface QueueMBean
- Throws:
java.lang.Exception
removeAllMessages
public void removeAllMessages()
throws java.lang.Exception
- Specified by:
removeAllMessages
in interface DestinationMBean
- Specified by:
removeAllMessages
in class DestinationServiceSupport
- Throws:
java.lang.Exception
listAllMessages
public java.util.List listAllMessages()
throws java.lang.Exception
- Specified by:
listAllMessages
in interface QueueMBean
- Throws:
java.lang.Exception
listAllMessages
public java.util.List listAllMessages(java.lang.String selector)
throws java.lang.Exception
- Specified by:
listAllMessages
in interface QueueMBean
- Throws:
java.lang.Exception
listDurableMessages
public java.util.List listDurableMessages()
throws java.lang.Exception
- Specified by:
listDurableMessages
in interface QueueMBean
- Throws:
java.lang.Exception
listDurableMessages
public java.util.List listDurableMessages(java.lang.String selector)
throws java.lang.Exception
- Specified by:
listDurableMessages
in interface QueueMBean
- Throws:
java.lang.Exception
listNonDurableMessages
public java.util.List listNonDurableMessages()
throws java.lang.Exception
- Specified by:
listNonDurableMessages
in interface QueueMBean
- Throws:
java.lang.Exception
listNonDurableMessages
public java.util.List listNonDurableMessages(java.lang.String selector)
throws java.lang.Exception
- Specified by:
listNonDurableMessages
in interface QueueMBean
- Throws:
java.lang.Exception
resetMessageCounter
public void resetMessageCounter()
- Specified by:
resetMessageCounter
in interface QueueMBean
listMessageCounterHistoryAsHTML
public java.lang.String listMessageCounterHistoryAsHTML()
- Specified by:
listMessageCounterHistoryAsHTML
in interface QueueMBean
resetMessageCounterHistory
public void resetMessageCounterHistory()
- Specified by:
resetMessageCounterHistory
in interface QueueMBean
isQueue
protected boolean isQueue()
- Specified by:
isQueue
in class DestinationServiceSupport
Copyright © 2006 JBoss Inc. All Rights Reserved.