org.apache.catalina.ant.jmx
public class JMXAccessorInvokeTask extends JMXAccessorTask
<jmx:invoke name="Catalina:type=Manager,path=/ClusterTest,host=localhost" operation="getSessionAttribute" resultproperty="hello"> <arg value="${sessionid.0}"/> <arg value="Hello"/> </jmx:invoke>
<jmx:invoke
name="Catalina:type=MBeanFactory"
operation="createAcccesLoggerValve"
resultproperty="acccesLoggerObjectName"
>
<arg value="Catalina:type=Host,host=localhost"/>
</jmx:invoke>
<jmx:invoke
name="Catalina:type=MBeanFactory"
operation="removeValve"
>
<arg value="Catalina:type=Valve,name=AccessLogValve,host=localhost"/>
</jmx:invoke>
First call to a remote MBeanserver save the JMXConnection a referenz jmx.server
These tasks require Ant 1.6 or later interface.Since: 5.5.10
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
void | addArg(Arg arg) |
List | getArgs() |
String | getInfo()
Return descriptive information about this implementation and the
corresponding version number, in the format
<description>/<version> . |
String | getOperation() |
String | jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. |
protected String | jmxInvoke(MBeanServerConnection jmxServerConnection, String name) |
void | setArgs(List args) |
void | setOperation(String operation) |
Returns: Returns the args.
<description>/<version>
.Returns: Returns the operation.
Throws: BuildException if an error occurs
Parameters: jmxServerConnection
Throws: Exception
Parameters: args The args to set.
Parameters: operation The operation to set.