org.apache.activemq.console.filter
Class MBeansObjectNameQueryFilter
java.lang.Object
org.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter
- All Implemented Interfaces:
- QueryFilter
public class MBeansObjectNameQueryFilter
- extends AbstractQueryFilter
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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 queryqueryExpStr
- - 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-2011 Apache Software Foundation. All Rights Reserved.