org.apache.catalina.ant.jmx

Class JMXAccessorInvokeTask

public class JMXAccessorInvokeTask extends JMXAccessorTask

Access JMX JSR 160 MBeans Server. Examples:

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) $

Author: Peter Rossbach

Method Summary
voidaddArg(Arg arg)
ListgetArgs()
StringgetInfo()
Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
StringgetOperation()
StringjmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties.
protected StringjmxInvoke(MBeanServerConnection jmxServerConnection, String name)
voidsetArgs(List args)
voidsetOperation(String operation)

Method Detail

addArg

public void addArg(Arg arg)

getArgs

public List getArgs()

Returns: Returns the args.

getInfo

public String getInfo()
Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.

getOperation

public String getOperation()

Returns: Returns the operation.

jmxExecute

public String jmxExecute(MBeanServerConnection jmxServerConnection)
Execute the specified command, based on the configured properties. The input stream will be closed upon completion of this task, whether it was executed successfully or not.

Throws: BuildException if an error occurs

jmxInvoke

protected String jmxInvoke(MBeanServerConnection jmxServerConnection, String name)

Parameters: jmxServerConnection

Throws: Exception

setArgs

public void setArgs(List args)

Parameters: args The args to set.

setOperation

public void setOperation(String operation)

Parameters: operation The operation to set.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.