|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.server.jmx.DestinationMBeanSupport
org.jboss.mq.server.jmx.Queue
public class Queue
This class is a message queue which is stored (hashed by Destination) on the JMS provider
Field Summary | |
---|---|
protected JMSQueue |
destination
The destination |
Fields inherited from class org.jboss.mq.server.jmx.DestinationMBeanSupport |
---|
destinationName, jbossMQService, jndiBound, jndiName, parameters, securityConf, securityManager, spyDest |
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()
|
Method Summary | |
---|---|
int |
getInProcessMessageCount()
Gets the InprocessMessageCount attribute of the BasicQueue object |
MessageCounter[] |
getMessageCounter()
Get destination message counter array |
MessageStatistics[] |
getMessageStatistics()
Get destination stats array |
int |
getQueueDepth()
Gets the QueueDepth attribute of the BasicQueue object |
String |
getQueueName()
Get the queue name |
int |
getReceiversCount()
Get the number of active receivers |
int |
getScheduledMessageCount()
Gets the ScheduledMessageCount attribute of the BasicQueue object |
int |
getSubscribersCount()
Get the number of active subscribers |
List |
listInProcessMessages()
List the in process messages |
List |
listInProcessMessages(String selector)
List the in process messages matching a selector |
List |
listMessages()
List the messages |
List |
listMessages(String selector)
List the messages matching a selector |
List |
listReceivers()
List the active receivers |
List |
listScheduledMessages()
List the scheduled messages |
List |
listScheduledMessages(String selector)
List the scheduled messages matching a selector |
Collection |
listSubscribers()
List the active subscribers |
void |
removeAllMessages()
Get the value of JBossMQService. |
void |
startService()
|
void |
stopService()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, destroy, destroyService, getDeploymentInfo, 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, nextNotificationSequenceNumber, 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.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 |
Field Detail |
---|
protected JMSQueue destination
Constructor Detail |
---|
public Queue()
Method Detail |
---|
public String getQueueName()
QueueMBean
getQueueName
in interface QueueMBean
public int getQueueDepth() throws Exception
QueueMBean
getQueueDepth
in interface QueueMBean
Exception
- Description of Exceptionpublic int getScheduledMessageCount() throws Exception
QueueMBean
getScheduledMessageCount
in interface QueueMBean
Exception
- Description of Exceptionpublic int getInProcessMessageCount() throws Exception
QueueMBean
getInProcessMessageCount
in interface QueueMBean
Exception
- Description of Exceptionpublic void startService() throws Exception
startService
in class DestinationMBeanSupport
Exception
public void stopService() throws Exception
stopService
in class DestinationMBeanSupport
Exception
public void removeAllMessages() throws Exception
DestinationMBean
removeAllMessages
in interface DestinationMBean
Exception
public int getReceiversCount()
QueueMBean
getReceiversCount
in interface QueueMBean
public List listReceivers()
QueueMBean
listReceivers
in interface QueueMBean
public List listMessages() throws Exception
QueueMBean
listMessages
in interface QueueMBean
Exception
- for any errorpublic List listMessages(String selector) throws Exception
QueueMBean
listMessages
in interface QueueMBean
selector
- the selector
Exception
- for any errorpublic List listScheduledMessages() throws Exception
QueueMBean
listScheduledMessages
in interface QueueMBean
Exception
- for any errorpublic List listScheduledMessages(String selector) throws Exception
QueueMBean
listScheduledMessages
in interface QueueMBean
selector
- the selector
Exception
- for any errorpublic List listInProcessMessages() throws Exception
QueueMBean
listInProcessMessages
in interface QueueMBean
Exception
- for any errorpublic List listInProcessMessages(String selector) throws Exception
QueueMBean
listInProcessMessages
in interface QueueMBean
selector
- the selector
Exception
- for any errorpublic MessageCounter[] getMessageCounter()
DestinationMBeanSupport
getMessageCounter
in interface DestinationMBean
getMessageCounter
in class DestinationMBeanSupport
public MessageStatistics[] getMessageStatistics() throws Exception
DestinationMBeanSupport
getMessageStatistics
in interface DestinationMBean
getMessageStatistics
in class DestinationMBeanSupport
Exception
- for any errorpublic int getSubscribersCount()
QueueMBean
getSubscribersCount
in interface QueueMBean
public Collection listSubscribers()
QueueMBean
listSubscribers
in interface QueueMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |