org.apache.catalina.ant

Class JMXQueryTask


public class JMXQueryTask
extends AbstractCatalinaTask

Ant task that implements the JMX Query command (/jmxproxy/?qry) supported by the Tomcat manager application.

Version:
$Revision: 1.3 $

Author:
Vivek Chopra

Field Summary

protected String
query
The JMX query string

Fields inherited from class org.apache.catalina.ant.AbstractCatalinaTask

password, url, username

Method Summary

void
execute()
Execute the requested operation.
String
getQuery()
Get method for the JMX query string
void
setQuery(String query)
Set method for the JMX query string.

Methods inherited from class org.apache.catalina.ant.AbstractCatalinaTask

execute, execute, execute, getPassword, getUrl, getUsername, setPassword, setUrl, setUsername

Field Details

query

protected String query
The JMX query string

See Also:
setQuery()

Method Details

execute

public void execute()
            throws BuildException
Execute the requested operation.
Overrides:
execute in interface AbstractCatalinaTask


getQuery

public String getQuery()
Get method for the JMX query string

Returns:
Query string


setQuery

public void setQuery(String query)
Set method for the JMX query string.

Examples of query format:

  • *:*
  • *:type=RequestProcessor,*
  • *:j2eeType=Servlet,*
  • Catalina:type=Environment,resourcetype=Global,name=simpleValue

Parameters:
query - JMX Query string


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.