Java Reference
In-Depth Information
accepts a
String
argument to be sent out as a notification. The notification type
is
jmx.modelmbean.general
.
7.3 Examining the ModelMBean interface
Now that we have examined the available features, let's discuss configuring the
management interface of a Model MBean. Specifically, we need to explore the
interfaces and classes that surround your use of Model MBeans. As with the
Dynamic MBean, we'll first cover the interface to a Model MBean. Like the
DynamicMBean
interface, the
javax.management.modelmbean.ModelMBean
interface
provides the methods necessary to work with a Model MBean. Figure 7.1 shows
the
ModelMBean
interface with a
UML
diagram.
It is important to discuss the
ModelMBean
interface because it declares (or
inherits) the methods you use to configure, access, and manage a Model MBean.
These methods allow you to get and set attributes, invoke operations, and con-
figure the overall management interface exposed by the MBean. In addition, the
Model MBean provides the methods for MBean persistence and working with
MBean notifications. After we cover this interface, we will discuss how to build
the
ModelMBeanInfo
object for a Model MBean.
Figure 7.1
UML diagram of the
ModelMBean
interface