Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

javax.management
Annotation Type ManagedOperation


@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:

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();
     ...
 }
 


Optional Element Summary
Modifier and Type Optional Element and Description
 Impact impact
          The impact of this operation, as shown by MBeanOperationInfo.getImpact().
 

impact

public abstract Impact impact

The impact of this operation, as shown by MBeanOperationInfo.getImpact().

Default:
javax.management.Impact.UNKNOWN

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Submit a bug or feature

Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.