Class JmxOperationInfo
java.lang.Object
com.j256.simplejmx.common.JmxOperationInfo
This identifies a method that is _not_ named "get...", "is...", or "set..." to be a JMX operation. The method can
either return void or return an object. It is recommended that the method return a simple object that will be for
sure in jconsole's classpath and also should not throw an unknown exception class either. This is used when you are
wiring using code or Spring another object that does not use the
JmxResource annotation or
JmxSelfNaming.- Author:
- graywatson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumerated version of the constants fromMBeanOperationInfo. -
Constructor Summary
ConstructorsConstructorDescriptionJmxOperationInfo(String methodName) JmxOperationInfo(String methodName, JmxOperation jmxOperation) JmxOperationInfo(String methodName, String[] parameterNames, String[] parameterDescriptions, JmxOperationInfo.OperationAction action, String description) -
Method Summary
Modifier and TypeMethodDescriptionString[]String[]voidNot required.voidsetDescription(String description) Not required.voidsetMethodName(String methodName) Required.voidsetParameterDescriptions(String[] parameterDescriptions) Not required.voidsetParameterNames(String[] parameterNames) Not required.toString()
-
Constructor Details
-
JmxOperationInfo
public JmxOperationInfo() -
JmxOperationInfo
-
JmxOperationInfo
public JmxOperationInfo(String methodName, String[] parameterNames, String[] parameterDescriptions, JmxOperationInfo.OperationAction action, String description) -
JmxOperationInfo
-
-
Method Details
-
getMethodName
-
setMethodName
Required. -
getParameterNames
-
setParameterNames
Not required. Default is none. -
getParameterDescriptions
-
setParameterDescriptions
Not required. Default is none. -
getAction
-
setAction
Not required. Default is UNKNOWN. -
getDescription
-
setDescription
Not required. Default is "Information about class". -
toString
-