Calls a method of an MBean.
JMX_INVOKE MBEAN=..., OPERATIONNAME=..., PARAMS=... [, SIGNATURE=...]
Syntax |
Description/Format |
---|---|
MBEAN= |
The object name of the MBean. |
OPERATIONNAME= |
The name of the operation that should be executed. |
PARAMS= |
A parameter list. Several parameters must be separated with commas. |
SIGNATURE= |
When the indicated MBean contains several methods of the name OPERATIONNAME= , the signature of the method to be executed must be assigned with this parameter. |
This script element calls the function of an MBean and assigns parameters to it. If the MBean has more than one function, you can address a particular one with SIGNATURE=.
In the agent's INI-file parameter search_all=, the administrator can specify whether this function searches the MBean on all local MBean servers or only on those to which the agent is connected.
JMX_INVOKE MBEAN=UC4:type=DatabaseExample, OPERATIONNAME=selectInvoice, PARAMS="1996-07-04,1996-07-10", SIGNATURE="java.lang.String,java.lang.String"
See also:
Sample Collection
Calling an MBean