org.apache.activemq.console.filter
Class MessagesQueryFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.AbstractQueryFilter
      extended by org.apache.activemq.console.filter.MessagesQueryFilter
All Implemented Interfaces:
QueryFilter

public class MessagesQueryFilter
extends AbstractQueryFilter


Field Summary
 
Fields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
next
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
MessagesQueryFilter(MBeanServerConnection jmxConnection, ObjectName destName)
          Create a JMS message query filter
 
Method Summary
 List query(List queries)
          Queries the specified destination using the message selector format query
protected  List queryMessages(String selector)
          Query the messages of a queue destination using JMX
 
Methods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagesQueryFilter

public MessagesQueryFilter(MBeanServerConnection jmxConnection,
                           ObjectName destName)
Create a JMS message query filter

Parameters:
jmxConnection - - JMX connection to use
destName - - object name query to retrieve the destination
Method Detail

query

public List query(List queries)
           throws Exception
Queries the specified destination using the message selector format query

Parameters:
queries - - message selector queries
Returns:
list messages that matches the selector
Throws:
Exception

queryMessages

protected List queryMessages(String selector)
                      throws Exception
Query the messages of a queue destination using JMX

Parameters:
selector - - message selector
Returns:
list of messages that matches the selector
Throws:
Exception


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.