org.jboss.ant
Class JMX.Invoke

java.lang.Object
  extended byorg.jboss.ant.JMX.Invoke
All Implemented Interfaces:
JMX.Operation (src)
Enclosing class:
JMX (src)

public static class JMX.Invoke
extends java.lang.Object
implements JMX.Operation (src)

The class Invoke specifies the invocation of a managed operation.


Constructor Summary
JMX.Invoke()
           
 
Method Summary
 void addParameter(JMX.Param (src)  param)
          The addParameter method adds a parameter for the operation.
 void execute(MBeanServerConnection (src)  server, Task parent)
           
 void setOperation(java.lang.String operation)
          The setOperation method specifies the operation to be performed.
 void setProperty(java.lang.String property)
          The setProperty method sets the name of the property that will contain the result of the operation.
 void setTarget(ObjectName (src)  target)
          The setTarget method sets the ObjectName of the target mbean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMX.Invoke

public JMX.Invoke()
Method Detail

setProperty

public void setProperty(java.lang.String property)
The setProperty method sets the name of the property that will contain the result of the operation.

Parameters:
property - a String value

setTarget

public void setTarget(ObjectName (src)  target)
The setTarget method sets the ObjectName of the target mbean.

Parameters:
target - an ObjectName value

setOperation

public void setOperation(java.lang.String operation)
The setOperation method specifies the operation to be performed.

Parameters:
operation - a String value

addParameter

public void addParameter(JMX.Param (src)  param)
The addParameter method adds a parameter for the operation. You must specify type and value.

Parameters:
param - a Param value

execute

public void execute(MBeanServerConnection (src)  server,
                    Task parent)
             throws java.lang.Exception
Specified by:
execute in interface JMX.Operation (src)
Throws:
java.lang.Exception