Class JmxOperationInfo

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

public class JmxOperationInfo extends Object
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
  • Constructor Details

  • Method Details

    • getMethodName

      public String getMethodName()
    • setMethodName

      public void setMethodName(String methodName)
      Required.
    • getParameterNames

      public String[] getParameterNames()
    • setParameterNames

      public void setParameterNames(String[] parameterNames)
      Not required. Default is none.
    • getParameterDescriptions

      public String[] getParameterDescriptions()
    • setParameterDescriptions

      public void setParameterDescriptions(String[] parameterDescriptions)
      Not required. Default is none.
    • getAction

    • setAction

      public void setAction(JmxOperationInfo.OperationAction action)
      Not required. Default is UNKNOWN.
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
      Not required. Default is "Information about class".
    • toString

      public String toString()
      Overrides:
      toString in class Object