public class MBeansObjectNameQueryFilter extends AbstractQueryFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_JMX_DOMAIN |
static String |
QUERY_EXP_PREFIX |
nextQUERY_DELIMETER| Constructor and Description |
|---|
MBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection)
Creates an mbeans object name query filter that will query on the given
JMX connection
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
querypublic static final String DEFAULT_JMX_DOMAIN
public static final String QUERY_EXP_PREFIX
public MBeansObjectNameQueryFilter(MBeanServerConnection jmxConnection)
jmxConnection - - JMX connection to usepublic List query(List queries) throws MalformedObjectNameException, IOException
queries - - mapping of keys and valuesMalformedObjectNameException - - if the given string is an invalid
object nameIOException - - if there is a problem querying the JMX contextprotected List queryMBeans(ObjectName objName, String queryExpStr) throws IOException
objName - - object name to use for queryqueryExpStr - - query expression stringIOException - - if there is a problem querying the JMX contextprotected QueryExp createQueryExp(String queryExpStr)
queryExpStr - - query expression stringCopyright © 2005–2018 FuseSource, Corp.. All rights reserved.