org.jboss.messaging.jms.server.management.impl
Class JMSQueueControlImpl

java.lang.Object
  extended by org.jboss.messaging.jms.server.management.impl.JMSQueueControlImpl
All Implemented Interfaces:
DestinationControlMBean, JMSQueueControl

public class JMSQueueControlImpl
extends java.lang.Object
implements JMSQueueControl

Version:
$Revision$
Author:
Jeff Mesnil

Constructor Summary
JMSQueueControlImpl(JBossQueue managedQueue, QueueControl coreQueueControl, java.lang.String jndiBinding, MessageCounter counter)
           
 
Method Summary
 boolean changeMessagePriority(java.lang.String messageID, int newPriority)
           
 int countMessages(java.lang.String filterStr)
           
static java.lang.String createFilterFromJMSSelector(java.lang.String selectorStr)
           
 boolean expireMessage(java.lang.String messageID)
           
 int expireMessages(java.lang.String filterStr)
           
 java.lang.String getAddress()
           
 int getConsumerCount()
           
 java.lang.String getDeadLetterAddress()
           
 int getDeliveringCount()
           
 java.lang.String getExpiryAddress()
           
 java.lang.String getJNDIBinding()
           
 int getMessageCount()
           
 int getMessagesAdded()
           
 java.lang.String getName()
           
 long getScheduledCount()
           
 boolean isDurable()
           
 boolean isTemporary()
           
 java.util.Map<java.lang.String,java.lang.Object>[] listAllMessages()
           
 java.lang.String listAllMessagesAsJSON()
           
 java.lang.String listMessageCounter()
           
 java.lang.String listMessageCounterAsHTML()
           
 java.lang.String listMessageCounterHistory()
           
 java.lang.String listMessageCounterHistoryAsHTML()
           
 java.util.Map<java.lang.String,java.lang.Object>[] listMessages(java.lang.String filterStr)
           
 java.lang.String listMessagesAsJSON(java.lang.String filter)
           
 int moveAllMessages(java.lang.String otherQueueName)
           
 int moveMatchingMessages(java.lang.String filterStr, java.lang.String otherQueueName)
           
 boolean moveMessage(java.lang.String messageID, java.lang.String otherQueueName)
           
 int removeAllMessages()
           
 int removeMatchingMessages(java.lang.String filterStr)
           
 boolean removeMessage(java.lang.String messageID)
           
 boolean sendMessageToDeadLetterAddress(java.lang.String messageID)
           
 void setDeadLetterAddress(java.lang.String deadLetterAddress)
           
 void setExpiryAddress(java.lang.String expiryAddres)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSQueueControlImpl

public JMSQueueControlImpl(JBossQueue managedQueue,
                           QueueControl coreQueueControl,
                           java.lang.String jndiBinding,
                           MessageCounter counter)
Method Detail

createFilterFromJMSSelector

public static java.lang.String createFilterFromJMSSelector(java.lang.String selectorStr)
                                                    throws MessagingException
Throws:
MessagingException

getName

public java.lang.String getName()
Specified by:
getName in interface DestinationControlMBean
Specified by:
getName in interface JMSQueueControl

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface DestinationControlMBean

isTemporary

public boolean isTemporary()
Specified by:
isTemporary in interface DestinationControlMBean
Specified by:
isTemporary in interface JMSQueueControl

getMessageCount

public int getMessageCount()
Specified by:
getMessageCount in interface DestinationControlMBean
Specified by:
getMessageCount in interface JMSQueueControl

getMessagesAdded

public int getMessagesAdded()
Specified by:
getMessagesAdded in interface JMSQueueControl

getConsumerCount

public int getConsumerCount()
Specified by:
getConsumerCount in interface JMSQueueControl

getDeliveringCount

public int getDeliveringCount()
Specified by:
getDeliveringCount in interface JMSQueueControl

getScheduledCount

public long getScheduledCount()
Specified by:
getScheduledCount in interface JMSQueueControl

isDurable

public boolean isDurable()
Specified by:
isDurable in interface JMSQueueControl

getJNDIBinding

public java.lang.String getJNDIBinding()
Specified by:
getJNDIBinding in interface DestinationControlMBean

getDeadLetterAddress

public java.lang.String getDeadLetterAddress()
Specified by:
getDeadLetterAddress in interface JMSQueueControl

setDeadLetterAddress

public void setDeadLetterAddress(java.lang.String deadLetterAddress)
                          throws java.lang.Exception
Specified by:
setDeadLetterAddress in interface JMSQueueControl
Throws:
java.lang.Exception

getExpiryAddress

public java.lang.String getExpiryAddress()
Specified by:
getExpiryAddress in interface JMSQueueControl

setExpiryAddress

public void setExpiryAddress(java.lang.String expiryAddres)
                      throws java.lang.Exception
Specified by:
setExpiryAddress in interface JMSQueueControl
Throws:
java.lang.Exception

removeMessage

public boolean removeMessage(java.lang.String messageID)
                      throws java.lang.Exception
Specified by:
removeMessage in interface JMSQueueControl
Throws:
java.lang.Exception

removeMatchingMessages

public int removeMatchingMessages(java.lang.String filterStr)
                           throws java.lang.Exception
Specified by:
removeMatchingMessages in interface JMSQueueControl
Throws:
java.lang.Exception

removeAllMessages

public int removeAllMessages()
                      throws java.lang.Exception
Specified by:
removeAllMessages in interface DestinationControlMBean
Throws:
java.lang.Exception

listAllMessages

public java.util.Map<java.lang.String,java.lang.Object>[] listAllMessages()
                                                                   throws java.lang.Exception
Specified by:
listAllMessages in interface JMSQueueControl
Throws:
java.lang.Exception

listAllMessagesAsJSON

public java.lang.String listAllMessagesAsJSON()
                                       throws java.lang.Exception
Specified by:
listAllMessagesAsJSON in interface JMSQueueControl
Throws:
java.lang.Exception

listMessages

public java.util.Map<java.lang.String,java.lang.Object>[] listMessages(java.lang.String filterStr)
                                                                throws java.lang.Exception
Specified by:
listMessages in interface JMSQueueControl
Throws:
java.lang.Exception

listMessagesAsJSON

public java.lang.String listMessagesAsJSON(java.lang.String filter)
                                    throws java.lang.Exception
Specified by:
listMessagesAsJSON in interface JMSQueueControl
Throws:
java.lang.Exception

countMessages

public int countMessages(java.lang.String filterStr)
                  throws java.lang.Exception
Specified by:
countMessages in interface JMSQueueControl
Throws:
java.lang.Exception

expireMessage

public boolean expireMessage(java.lang.String messageID)
                      throws java.lang.Exception
Specified by:
expireMessage in interface JMSQueueControl
Throws:
java.lang.Exception

expireMessages

public int expireMessages(java.lang.String filterStr)
                   throws java.lang.Exception
Specified by:
expireMessages in interface JMSQueueControl
Throws:
java.lang.Exception

sendMessageToDeadLetterAddress

public boolean sendMessageToDeadLetterAddress(java.lang.String messageID)
                                       throws java.lang.Exception
Specified by:
sendMessageToDeadLetterAddress in interface JMSQueueControl
Throws:
java.lang.Exception

changeMessagePriority

public boolean changeMessagePriority(java.lang.String messageID,
                                     int newPriority)
                              throws java.lang.Exception
Specified by:
changeMessagePriority in interface JMSQueueControl
Throws:
java.lang.Exception

moveMessage

public boolean moveMessage(java.lang.String messageID,
                           java.lang.String otherQueueName)
                    throws java.lang.Exception
Specified by:
moveMessage in interface JMSQueueControl
Throws:
java.lang.Exception

moveMatchingMessages

public int moveMatchingMessages(java.lang.String filterStr,
                                java.lang.String otherQueueName)
                         throws java.lang.Exception
Specified by:
moveMatchingMessages in interface JMSQueueControl
Throws:
java.lang.Exception

moveAllMessages

public int moveAllMessages(java.lang.String otherQueueName)
                    throws java.lang.Exception
Specified by:
moveAllMessages in interface JMSQueueControl
Throws:
java.lang.Exception

listMessageCounter

public java.lang.String listMessageCounter()
Specified by:
listMessageCounter in interface JMSQueueControl

listMessageCounterAsHTML

public java.lang.String listMessageCounterAsHTML()
Specified by:
listMessageCounterAsHTML in interface JMSQueueControl

listMessageCounterHistory

public java.lang.String listMessageCounterHistory()
                                           throws java.lang.Exception
Specified by:
listMessageCounterHistory in interface JMSQueueControl
Throws:
java.lang.Exception

listMessageCounterHistoryAsHTML

public java.lang.String listMessageCounterHistoryAsHTML()
Specified by:
listMessageCounterHistoryAsHTML in interface JMSQueueControl


Copyright © 2006 JBoss Inc. All Rights Reserved.