org.apache.catalina.ant.jmx
public class JMXAccessorCreateTask extends JMXAccessorTask
Examples:
create a new Mbean at jmx.server connection
<jmx:create
ref="jmx.server"
name="Catalina:type=MBeanFactory"
className="org.apache.catalina.mbeans.MBeanFactory"
classLoader="Catalina:type=ServerClassLoader,name=server">
<Arg value="org.apache.catalina.mbeans.MBeanFactory" />
</jmxCreate/>
WARNINGNot all Tomcat MBeans can create remotely and autoregister by its parents! Please, use the MBeanFactory operation to generate valves and realms.
First call to a remote MBeanserver save the JMXConnection a reference jmx.server
These tasks require Ant 1.6 or later interface.Since: 5.5.12
Version: $Revision: 467222 $
| Method Summary | |
|---|---|
| void | addArg(Arg arg) |
| List | getArgs() |
| String | getClassLoader() |
| String | getClassName() |
| String | getInfo()
Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version>. |
| protected String | jmxCreate(MBeanServerConnection jmxServerConnection, String name)
create new Mbean and when set from ClassLoader Objectname |
| String | jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. |
| void | setArgs(List args) |
| void | setClassLoader(String classLoaderName) |
| void | setClassName(String className) |
Returns: Returns the args.
Returns: Returns the classLoader.
Returns: Returns the className.
<description>/<version>.Returns: Returns the class info.
Parameters: jmxServerConnection name
Returns: The value of the given named attribute
Throws: Exception
Throws: Exception if an error occurs
Parameters: args The args to set.
Parameters: classLoader The classLoader to set.
Parameters: className The className to set.