JMXQueryTaskpublic class JMXQueryTask extends AbstractCatalinaTask Ant task that implements the JMX Query command
(/jmxproxy/?qry ) supported by the Tomcat manager application. |
Fields Summary |
---|
protected String | queryThe JMX query string |
Methods Summary |
---|
public void | execute()Execute the requested operation.
super.execute();
String queryString = (query == null) ? "":("?qry="+query);
log("Query string is " + queryString);
execute ("/jmxproxy/" + queryString);
| public java.lang.String | getQuery()Get method for the JMX query string
// Public Methods
return this.query;
| public void | setQuery(java.lang.String query)Set method for the JMX query string.
Examples of query format:
- *:*
- *:type=RequestProcessor,*
- *:j2eeType=Servlet,*
- Catalina:type=Environment,resourcetype=Global,name=simpleValue
this.query = query;
|
|