Java Reference
In-Depth Information
Figure 5.1
A Dynamic MBean insulating
an evolving implementation.
The interface to a Dynamic
MBean does not change, so
it can shield the changes to
a resource from a manage-
ment tool.
defining the management interface at runtime, Dynamic MBeans are flexible
enough to handle dynamic and evolving resources. The following code listing
shows the DynamicMBean interface. Notice that it contains methods for handling
attributes and operations, and for acquiring a description of the MBean:
package javax.management;
public interface DynamicMBean
{
public Object getAttribute( String attribute )
throws AttributeNotFoundException, MBeanException,
ReflectionException;
public void setAttribute( Attribute attribute )
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException;
public AttributeList getAttributes( String[] attributes );
public AttributeList setAttributes( AttributeList attributes );
public Object invoke( String actionName, Object[] params,
String[] signature ) throws MBeanException,
ReflectionExceptionn
public MBeanInfo getMBeanInfo();
}
Search WWH ::




Custom Search