Part IInstrumentation Using MBeans
Given a resource
in the Java programming language--either an application, a service or
an object representing a device--its instrumentation
is the way that you expose its management interface. The management
interface is the set of attributes and operations that are visible
to managers that need to interact with that resource. Therefore, instrumenting a resource makes it manageable.
This part covers the four ways to instrument a resource:
Chapter 1, Standard MBeans shows how to write a standard MBean by following the design patterns defined by the JMX
specification. The example shows how an agent then accesses the attributes
and operations.
Chapter 2, Dynamic MBeans shows how to implement a dynamic MBean in order to expose a coherent management interface.
The example highlights the similarities and differences between dynamic and
standard MBeans, with an analysis of performance issues.
Chapter 3, Model MBeans shows how to dynamically instantiate
a configurable model MBean. This chapter includes an
example of how to create a model MBean, configure its behavior, set its target
object, and then manage it in the same way as any other MBean.
Chapter 4, Open MBeans shows how to write an open MBean that enables management applications to understand and
use new managed resources as soon as they are discovered at runtime.
When you write a standard MBean, you follow certain design patterns
so that the method names in your object expose the attributes and operations
to static introspection. Dynamic MBeans implement a generic interface and
can expose a rich description of their management interface. Model MBeans
are MBean templates whose management interface and resource target are defined
at runtime. Open MBeans are managed objects that refer only to a limited and
predefined set of data types, that can be combined into compound types such
as tables.
|