org.apache.activemq.console.filter
Class MBeansObjectNameQueryFilter

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

public class MBeansObjectNameQueryFilter
extends AbstractQueryFilter


Field Summary
static String DEFAULT_JMX_DOMAIN
           
static String QUERY_EXP_PREFIX
           
 
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
MBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection)
          Creates an mbeans object name query filter that will query on the given JMX connection
 
Method Summary
protected  QueryExp createQueryExp(String queryExpStr)
          Creates a query expression based on the query expression string Note: currently unsupported
 List query(List queries)
          Queries the JMX service using a mapping of keys and values to construct the object name
protected  List queryMBeans(ObjectName objName, String queryExpStr)
          Advance query that enables you to specify both the object name and the query expression to use.
 
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
 

Field Detail

DEFAULT_JMX_DOMAIN

public static final String DEFAULT_JMX_DOMAIN
See Also:
Constant Field Values

QUERY_EXP_PREFIX

public static final String QUERY_EXP_PREFIX
See Also:
Constant Field Values
Constructor Detail

MBeansObjectNameQueryFilter

public MBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection)
Creates an mbeans object name query filter that will query on the given JMX connection

Parameters:
jmxConnection - - JMX connection to use
Method Detail

query

public List query(List queries)
           throws MalformedObjectNameException,
                  IOException
Queries the JMX service using a mapping of keys and values to construct the object name

Parameters:
queries - - mapping of keys and values
Returns:
collection of ObjectInstance that matches the query
Throws:
MalformedObjectNameException - - if the given string is an invalid object name
IOException - - if there is a problem querying the JMX context

queryMBeans

protected List queryMBeans(ObjectName objName,
                           String queryExpStr)
                    throws IOException
Advance query that enables you to specify both the object name and the query expression to use. Note: Query expression is currently unsupported.

Parameters:
objName - - object name to use for query
queryExpStr - - query expression string
Returns:
set of mbeans that matches the query
Throws:
IOException - - if there is a problem querying the JMX context

createQueryExp

protected QueryExp createQueryExp(String queryExpStr)
Creates a query expression based on the query expression string Note: currently unsupported

Parameters:
queryExpStr - - query expression string
Returns:
the created query expression


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