com.j256.simplejmx.common
Enum JmxOperationInfo.OperationAction

java.lang.Object
  extended by java.lang.Enum<JmxOperationInfo.OperationAction>
      extended by com.j256.simplejmx.common.JmxOperationInfo.OperationAction
All Implemented Interfaces:
Serializable, Comparable<JmxOperationInfo.OperationAction>
Enclosing class:
JmxOperationInfo

public static enum JmxOperationInfo.OperationAction
extends Enum<JmxOperationInfo.OperationAction>

An enumerated version of the constants from MBeanOperationInfo.


Enum Constant Summary
ACTION
          Indicates that the operation is a write-like, and would modify the MBean in some way, typically by writing some value or changing a configuration.
ACTION_INFO
          Indicates that the operation is both read-like and write-like.
INFO
          Indicates that the operation is read-like, it basically returns information.
UNKNOWN
          Indicates that the operation has an "unknown" nature.
 
Method Summary
static JmxOperationInfo.OperationAction fromActionValue(int actionValue)
          Return the enumerated action from the MBeanOperationInfo int constant.
 int getActionValue()
          Return the associated MBeanOperationInfo int constant.
static JmxOperationInfo.OperationAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JmxOperationInfo.OperationAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INFO

public static final JmxOperationInfo.OperationAction INFO
Indicates that the operation is read-like, it basically returns information.


ACTION

public static final JmxOperationInfo.OperationAction ACTION
Indicates that the operation is a write-like, and would modify the MBean in some way, typically by writing some value or changing a configuration.


ACTION_INFO

public static final JmxOperationInfo.OperationAction ACTION_INFO
Indicates that the operation is both read-like and write-like.


UNKNOWN

public static final JmxOperationInfo.OperationAction UNKNOWN
Indicates that the operation has an "unknown" nature.

Method Detail

values

public static JmxOperationInfo.OperationAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JmxOperationInfo.OperationAction c : JmxOperationInfo.OperationAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JmxOperationInfo.OperationAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getActionValue

public int getActionValue()
Return the associated MBeanOperationInfo int constant.


fromActionValue

public static JmxOperationInfo.OperationAction fromActionValue(int actionValue)
Return the enumerated action from the MBeanOperationInfo int constant.



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