Class MBeansObjectNameQueryFilter
java.lang.Object
org.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter
- All Implemented Interfaces:
QueryFilter
-
Field Summary
FieldsFields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
nextFields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER -
Constructor Summary
ConstructorsConstructorDescriptionMBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection) Creates an mbeans object name query filter that will query on the given JMX connection -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryExpcreateQueryExp(String queryExpStr) Creates a query expression based on the query expression string Note: currently unsupportedQueries the JMX service using a mapping of keys and values to construct the object nameprotected ListqueryMBeans(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
-
Field Details
-
DEFAULT_JMX_DOMAIN
- See Also:
-
QUERY_EXP_PREFIX
- See Also:
-
-
Constructor Details
-
MBeansObjectNameQueryFilter
Creates an mbeans object name query filter that will query on the given JMX connection- Parameters:
jmxConnection- - JMX connection to use
-
-
Method Details
-
query
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 nameIOException- - if there is a problem querying the JMX context
-
queryMBeans
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
Creates a query expression based on the query expression string Note: currently unsupported- Parameters:
queryExpStr- - query expression string- Returns:
- the created query expression
-