|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Impact>
javax.management.Impact
public enum Impact extends Enum<Impact>
Defines the impact of an MBean operation, in particular whether it
has an effect on the MBean or simply returns information. This enum
is used in the @ManagedOperation annotation.
Its getCode() method can be used to get an int suitable
for use as the impact parameter in an MBeanOperationInfo
constructor.
| Enum Constant and Description |
|---|
ACTION
The operation is write-like: it has an effect but does not return any information from the MBean. |
ACTION_INFO
The operation is both read-like and write-like: it has an effect, and it also returns information from the MBean. |
INFO
The operation is read-like: it returns information but does not change any state. |
UNKNOWN
The impact of the operation is unknown or cannot be expressed using one of the other values. |
| Modifier and Type | Method and Description |
|---|---|
static Impact |
forCode(int code)
Return the Impact value corresponding to the given int
code. |
int |
getCode()
The equivalent int code used by the MBeanOperationInfo
constructors. |
static Impact |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Impact[] |
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 |
|---|
public static final Impact INFO
MBeanOperationInfo.INFOpublic static final Impact ACTION
MBeanOperationInfo.ACTIONpublic static final Impact ACTION_INFO
MBeanOperationInfo.ACTION_INFOpublic static final Impact UNKNOWN
MBeanOperationInfo.UNKNOWN| Method Detail |
|---|
public static Impact[] values()
for (Impact c : Impact.values()) System.out.println(c);
public static Impact valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getCode()
int code used by the MBeanOperationInfo
constructors.
int code.public static Impact forCode(int code)
Impact value corresponding to the given int
code. The code is the value that would be used in an
MBeanOperationInfo constructor.
code - the int code.Impact value x such that
code == x.getCode(), or Impact.UNKNOWN
if there is no such value.
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.