|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface ManagedOperation
Indicates that a method in an MBean class defines an MBean operation. This annotation can be applied to:
@MBean or
@MXBean annotation, or inherits such an annotation from
a superclass.Every method in an MBean or MXBean interface defines an MBean operation even without this annotation, but the annotation allows you to specify the impact of the operation:
public interface ConfigurationMBean {
@ManagedOperation(impact = Impact.ACTION)
public void save();
...
}
| Modifier and Type | Optional Element and Description |
|---|---|
Impact |
impact
The impact of this operation, as shown by MBeanOperationInfo.getImpact(). |
public abstract Impact impact
The impact of this operation, as shown by
MBeanOperationInfo.getImpact().
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.