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
Constructor Summary |
MBeansObjectNameQueryFilter(javax.management.MBeanServerConnection jmxConnection)
Creates an mbeans object name query filter that will query on the given
JMX connection |
Method Summary |
protected javax.management.QueryExp |
createQueryExp(java.lang.String queryExpStr)
Creates a query expression based on the query expression string Note:
currently unsupported |
java.util.List |
query(java.util.List queries)
Queries the JMX service using a mapping of keys and values to construct
the object name |
protected java.util.List |
queryMBeans(javax.management.ObjectName objName,
java.lang.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 java.lang.String DEFAULT_JMX_DOMAIN
- See Also:
- Constant Field Values
QUERY_EXP_PREFIX
public static final java.lang.String QUERY_EXP_PREFIX
- See Also:
- Constant Field Values
MBeansObjectNameQueryFilter
public MBeansObjectNameQueryFilter(javax.management.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 java.util.List query(java.util.List queries)
throws javax.management.MalformedObjectNameException,
java.io.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:
javax.management.MalformedObjectNameException
- - if the given string is an invalid
object name
java.io.IOException
- - if there is a problem querying the JMX context
queryMBeans
protected java.util.List queryMBeans(javax.management.ObjectName objName,
java.lang.String queryExpStr)
throws java.io.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:
java.io.IOException
- - if there is a problem querying the JMX context
createQueryExp
protected javax.management.QueryExp createQueryExp(java.lang.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-2015. All Rights Reserved.