|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.console.filter.AbstractQueryFilter
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter
public class MBeansObjectNameQueryFilter
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_JMX_DOMAIN
|
static java.lang.String |
QUERY_EXP_PREFIX
|
Fields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter |
---|
next |
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter |
---|
QUERY_DELIMETER |
Constructor Summary | |
---|---|
MBeansObjectNameQueryFilter(javax.management.remote.JMXServiceURL jmxUrl)
Creates an mbeans objecet name query filter that will query on the given JMX Service URL |
|
MBeansObjectNameQueryFilter(java.lang.String jmxUrl)
Creates an mbeans object name query filter that will query on the given JMX Service URL |
Method Summary | |
---|---|
protected javax.management.remote.JMXConnector |
createJmxConnector()
Creates a JMX connector |
protected javax.management.QueryExp |
createQueryExp(java.lang.String queryExpStr)
Creates a query expression based on the query expression string Note: currently unsupported |
javax.management.remote.JMXServiceURL |
getJmxServiceUrl()
Get the JMX service URL the query is connecting to. |
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. |
void |
setJmxServiceUrl(javax.management.remote.JMXServiceURL jmxServiceUrl)
Sets the JMX service URL the query is going to connect to. |
void |
setJmxServiceUrl(java.lang.String jmxServiceUrl)
Sets the JMX service URL the query is going to connect to. |
Methods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter |
---|
query |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_JMX_DOMAIN
public static final java.lang.String QUERY_EXP_PREFIX
Constructor Detail |
---|
public MBeansObjectNameQueryFilter(java.lang.String jmxUrl) throws java.net.MalformedURLException
jmxUrl
- - JMX service URL to connect to
java.net.MalformedURLException
public MBeansObjectNameQueryFilter(javax.management.remote.JMXServiceURL jmxUrl)
jmxUrl
- - JMX service URL to connect toMethod Detail |
---|
public java.util.List query(java.util.List queries) throws javax.management.MalformedObjectNameException, java.io.IOException
queries
- - mapping of keys and values
javax.management.MalformedObjectNameException
- - if the given string is an invalid object name
java.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 string
java.io.IOException
- - if there is a problem querying the JMX contextpublic javax.management.remote.JMXServiceURL getJmxServiceUrl()
public void setJmxServiceUrl(javax.management.remote.JMXServiceURL jmxServiceUrl)
jmxServiceUrl
- - new JMX service URLpublic void setJmxServiceUrl(java.lang.String jmxServiceUrl) throws java.net.MalformedURLException
jmxServiceUrl
- - new JMX service URL
java.net.MalformedURLException
protected javax.management.remote.JMXConnector createJmxConnector() throws java.io.IOException
java.io.IOException
protected javax.management.QueryExp createQueryExp(java.lang.String queryExpStr)
queryExpStr
- - query expression string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |