当前页面: 
在线文档首页 > 
JBoss 4.0.1 sp1 messaging  API Documentation 英文版文档
Queue (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging  API Documentation 英文版文档
org.jboss.mq.server.jmx
Class Queue
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.mx.util.JBossNotificationBroadcasterSupport
       org.jboss.system.ServiceMBeanSupport
org.jboss.system.ServiceMBeanSupport
           org.jboss.mq.server.jmx.DestinationMBeanSupport
org.jboss.mq.server.jmx.DestinationMBeanSupport
               org.jboss.mq.server.jmx.Queue
org.jboss.mq.server.jmx.Queue
- All Implemented Interfaces: 
- DestinationMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, QueueMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class Queue- extends DestinationMBeanSupport- implements QueueMBean
This class is a message queue which is stored (hashed by Destination)
 on the JMS provider
- Version:
- $Revision: 1.10.4.1 $
- Author:
- Norbert Lataille (Norbert.Lataille@m4x.org), Hiram Chirino, Peter Antman
 
| 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 | 
 
| Constructor Summary | 
| Queue()
 | 
 
 
| Methods inherited from class org.jboss.mq.server.jmx.DestinationMBeanSupport | 
| createService, getDestinationManager, getInMemory, getJNDIName, getMaxDepth, getMessageCounterHistoryDayLimit, getObjectName, getReceiversImpl, getRedeliveryDelay, getRedeliveryLimit, getSecurityConf, getSecurityManager, getSpyDest, listMessageCounter, listMessageCounterHistory, resetMessageCounter, resetMessageCounterHistory, setDestinationManager, setInMemory, setJNDIName, setMaxDepth, setMessageCounterHistoryDayLimit, setReceiversImpl, setRedeliveryDelay, setRedeliveryLimit, setSecurityConf, setSecurityManager, stopService | 
 
| Methods inherited from class org.jboss.system.ServiceMBeanSupport | 
| create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop | 
 
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport | 
| addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface org.jboss.mq.server.jmx.DestinationMBean | 
| getDestinationManager, getInMemory, getJNDIName, getMaxDepth, getMessageCounterHistoryDayLimit, getReceiversImpl, getRedeliveryDelay, getRedeliveryLimit, listMessageCounter, listMessageCounterHistory, resetMessageCounter, resetMessageCounterHistory, setDestinationManager, setInMemory, setJNDIName, setMaxDepth, setMessageCounterHistoryDayLimit, setReceiversImpl, setRedeliveryDelay, setRedeliveryLimit, setSecurityConf, setSecurityManager | 
 
| Methods inherited from interface org.jboss.system.ServiceMBean | 
| getName, getState, getStateString, jbossInternalLifecycle | 
 
| Methods inherited from interface org.jboss.system.Service | 
| create, destroy, start, stop | 
 
| Methods inherited from interface javax.management.MBeanRegistration | 
| postDeregister, postRegister, preDeregister, preRegister | 
 
Queue
public Queue()
getQueueName
public String getQueueName()
- 
- Specified by:
- getQueueNamein interface- QueueMBean
 
- 
 
getQueueDepth
public int getQueueDepth()
                  throws Exception
- Gets the QueueDepth attribute of the BasicQueue object
 
- 
- Specified by:
- getQueueDepthin interface- QueueMBean
 
- 
- Returns:
- The QueueDepth value
- Throws:
- Exception- Description of Exception
 
getScheduledMessageCount
public int getScheduledMessageCount()
                             throws Exception
- Gets the ScheduledMessageCount attribute of the BasicQueue object
 
- 
- Specified by:
- getScheduledMessageCountin interface- QueueMBean
 
- 
- Returns:
- The ScheduledMessageCount value
- Throws:
- Exception- Description of Exception
 
startService
public void startService()
                  throws Exception
- 
- Overrides:
- startServicein class- DestinationMBeanSupport
 
- 
- Throws:
- Exception
 
removeAllMessages
public void removeAllMessages()
                       throws Exception
- Description copied from interface: DestinationMBean
- Get the value of JBossMQService.
 
- 
- Specified by:
- removeAllMessagesin interface- DestinationMBean
 
- 
- Returns:
- value of JBossMQService.
- Throws:
- Exception
- See Also:
- DestinationMBean.removeAllMessages()
 
getReceiversCount
public int getReceiversCount()
- 
- Specified by:
- getReceiversCountin interface- QueueMBean
 
- 
 
listReceivers
public List listReceivers()
- 
- Specified by:
- listReceiversin interface- QueueMBean
 
- 
 
listMessages
public List listMessages()
                  throws Exception
- 
- Specified by:
- listMessagesin interface- QueueMBean
 
- 
- Throws:
- Exception
 
listMessages
public List listMessages(String selector)
                  throws Exception
- 
- Specified by:
- listMessagesin interface- QueueMBean
 
- 
- Throws:
- Exception
 
getMessageCounter
public MessageCounter[] getMessageCounter()
- Description copied from interface: DestinationMBean
- get message counter of all internal queues
 
- 
- Specified by:
- getMessageCounterin interface- DestinationMBean
- Specified by:
- getMessageCounterin class- DestinationMBeanSupport
 
- 
- Returns:
- MessageCounter[]
- See Also:
- DestinationMBeanSupport.getMessageCounter()
 
getMessageStatistics
public MessageStatistics[] getMessageStatistics()
                                         throws Exception
- Description copied from interface: DestinationMBean
- get message statistics of all internal queues
 
- 
- Specified by:
- getMessageStatisticsin interface- DestinationMBean
- Specified by:
- getMessageStatisticsin class- DestinationMBeanSupport
 
- 
- Returns:
- MessageStatistics[]
- Throws:
- Exception- for any error
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.