com.j256.simplejmx.common
Class JmxOperationInfo

java.lang.Object
  extended by com.j256.simplejmx.common.JmxOperationInfo

public class JmxOperationInfo
extends Object

This identifies a methods that is a JMX operation for methods that are _not_ named "get..." or "set...". 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.

Author:
graywatson

Nested Class Summary
static class JmxOperationInfo.OperationAction
          An enumerated version of the constants from MBeanOperationInfo.
 
Field Summary
 JmxOperationInfo.OperationAction action
           
 String description
           
 String methodName
           
 String[] parameterDescriptions
           
 String[] parameterNames
           
 
Constructor Summary
JmxOperationInfo(String methodName, JmxOperation jmxOperation)
           
JmxOperationInfo(String methodName, String[] parameterNames, String[] parameterDescriptions, JmxOperationInfo.OperationAction action, String description)
           
 
Method Summary
 JmxOperationInfo.OperationAction getAction()
           
 String getDescription()
           
 String getMethodName()
           
 String[] getParameterDescriptions()
           
 String[] getParameterNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodName

public String methodName

parameterNames

public String[] parameterNames

parameterDescriptions

public String[] parameterDescriptions

action

public JmxOperationInfo.OperationAction action

description

public String description
Constructor Detail

JmxOperationInfo

public JmxOperationInfo(String methodName,
                        String[] parameterNames,
                        String[] parameterDescriptions,
                        JmxOperationInfo.OperationAction action,
                        String description)

JmxOperationInfo

public JmxOperationInfo(String methodName,
                        JmxOperation jmxOperation)
Method Detail

getMethodName

public String getMethodName()

getParameterNames

public String[] getParameterNames()

getParameterDescriptions

public String[] getParameterDescriptions()

getAction

public JmxOperationInfo.OperationAction getAction()

getDescription

public String getDescription()


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.