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(javax.management.remote.JMXServiceURL jmxServiceUrl, javax.management.ObjectName destName)
          Create a JMS message query filter
 
Method Summary
protected  javax.management.remote.JMXConnector createJmxConnector()
          Creates a JMX connector
 javax.management.remote.JMXServiceURL getJmxServiceUrl()
          Get the JMX service URL the query is connecting to.
 java.util.List query(java.util.List queries)
          Queries the specified destination using the message selector format query
protected  java.util.List queryMessages(java.lang.String selector)
          Query the messages of a queue destination using JMX
 void setJmxServiceUrl(javax.management.remote.JMXServiceURL jmxServiceUrl)
          Sets the JMX service URL the query is going to connect to.
 void setJmxServiceUrl(java.lang.String jmxServiceUrl)
          Sets the JMX service URL the query is going to connect to.
 
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(javax.management.remote.JMXServiceURL jmxServiceUrl,
                           javax.management.ObjectName destName)
Create a JMS message query filter

Parameters:
jmxServiceUrl - - JMX service URL to connect to
destName - - object name query to retrieve the destination
Method Detail

query

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

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

queryMessages

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

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

getJmxServiceUrl

public javax.management.remote.JMXServiceURL getJmxServiceUrl()
Get the JMX service URL the query is connecting to.

Returns:
JMX service URL

setJmxServiceUrl

public void setJmxServiceUrl(javax.management.remote.JMXServiceURL jmxServiceUrl)
Sets the JMX service URL the query is going to connect to.

Parameters:
jmxServiceUrl - - new JMX service URL

setJmxServiceUrl

public void setJmxServiceUrl(java.lang.String jmxServiceUrl)
                      throws java.net.MalformedURLException
Sets the JMX service URL the query is going to connect to.

Parameters:
jmxServiceUrl - - new JMX service URL
Throws:
java.net.MalformedURLException

createJmxConnector

protected javax.management.remote.JMXConnector createJmxConnector()
                                                           throws java.io.IOException
Creates a JMX connector

Returns:
JMX connector
Throws:
java.io.IOException


Copyright © 2009 Apache Software Foundation. All Rights Reserved.