public class MBeansObjectNameQueryFilter extends AbstractQueryFilter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_JMX_DOMAIN |
static java.lang.String |
QUERY_EXP_PREFIX |
nextQUERY_DELIMETER| Constructor and Description |
|---|
MBeansObjectNameQueryFilter(javax.management.MBeanServerConnection jmxConnection)
Creates an mbeans object name query filter that will query on the given
JMX connection
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
querypublic static final java.lang.String DEFAULT_JMX_DOMAIN
public static final java.lang.String QUERY_EXP_PREFIX
public MBeansObjectNameQueryFilter(javax.management.MBeanServerConnection jmxConnection)
jmxConnection - - JMX connection to usepublic java.util.List query(java.util.List queries)
throws javax.management.MalformedObjectNameException,
java.io.IOException
queries - - mapping of keys and valuesjavax.management.MalformedObjectNameException - - if the given string is an invalid
object namejava.io.IOException - - if there is a problem querying the JMX contextprotected java.util.List queryMBeans(javax.management.ObjectName objName,
java.lang.String queryExpStr)
throws java.io.IOException
objName - - object name to use for queryqueryExpStr - - query expression stringjava.io.IOException - - if there is a problem querying the JMX contextprotected javax.management.QueryExp createQueryExp(java.lang.String queryExpStr)
queryExpStr - - query expression stringCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.