Java Management Extension, e-book, JAVA

[ Pobierz całość w formacie PDF ]
First Edition June 2002
ISBN: 0-596-00245-9, 312 pages
Index
Java Management Extensions
is a practical, hands-on guide to using the
JMX APIs, Sun Microsystem's new Java-based tool for managing enterprise
applications. This one-of-a kind book is a complete treatment of the JMX
architecture (both the instrumentation level and the agent level), and it's
loaded with real-world examples for implementing Management
Extensions. It also contains useful information at the higher level about
JMX (the "big picture") to help technical managers and architects who are
evaluating various application management approaches and are considering
JMX.
1
y
J. Steven Perry
Publisher: O'Reill
Table of Content
2
 3
Preface
As technology evolves, it enables us to write applications that are increasingly distributed
and complex. Today's network technologies allow us to process units of work on
physically separate machines scattered throughout the world. As the scale and complexity
of today's newest applications increases, so too does the challenge of managing them.
After all, it is not really beneficial to distribute an application across many different
machines if the answer to a question as simple as "Is the application still running?"
cannot easily be determined.
This book is about Java Management Extensions, or JMX, which is the Java standard for
management of application resources. An application resource can be any piece of
hardware or software that you wish to monitor and control, such as a printer, router,
database connection, or queue. At the heart of JMX is the concept of a managed bean, or
MBean, which is a resource that has been instrumented via JMX. The MBean gets its
name from the fact that it resembles a JavaBean, in that its state is entirely maintained
through the use of get and set methods for its attributes. A notification model similar to
the Java notification model is also available for MBeans that need to emit notifications.
JMX provides an architecture, a set of design patterns, and a set of application
programming interfaces (APIs) that allow you to instrument your application and system
resources so that they can be managed. JMX was designed to be able to integrate with
existing management technologies, such as the Simple Network Management Protocol
(SNMP) and Web-Based Enterprise Management (WBEM). This book covers every facet
of JMX as it is currently specified, from instrumentation to writing agents to using the
JMX agent services. Some parts of JMX are still unspecified (most notably the JMX
distributed services), so it can't cover everything; however, it is my intention that this
book be the most complete reference on JMX that is available today.
Here is a summary of what this book covers:

JMX instrumentation: standard, dynamic, model, and open MBeans

JMX notifications: how to broadcast, filter, and listen for them

The MBean server: a registry of MBeans and a communication broker between
management applications and registered MBeans

JMX agent services: dynamic loading, monitoring, timer, and relation services,
available through the JMX agent
Audience
This is primarily a how-to book, intended for software developers who face the challenge
of building management capability through JMX technology into their Java applications
and want to know exactly how to go about it. However, this book can also provide
software development managers with the necessary information about JMX to make
decisions regarding whether or not to implement this technology in their development
4
 projects. (I assume that you are already convinced of the need to build management
capabilities into your application.)
looks at JMX at a high level. The JMX architecture is given the most treatment
here, as it is the core of JMX. The following chapters are very meaty and are intended for
developers who want to know how to use all of the aspects of JMX that are currently
specified.
Organization
contains an overview of JMX that introduces fundamental concepts and
provides an overview of the JMX architecture. It also introduces the sample application
we'll use throughout the book, which demonstrates each MBean instrumentation
approach. We'll see how to build and run the application and how to use a web browser to
monitor what's going on inside it.
covers how to create and use standard MBeans and discusses the inheritance
patterns that they must follow. In this chapter, we will take a look at the fundamentals of
a management interface and how to define one.
looks at how dynamic MBeans work and the inheritance patterns you can use
when creating them. It also shows how to describe a dynamic MBean using the metadata
classes provided by the JMX specification.
discusses how model MBeans work and how they differ from any other MBean
type. It also shows how to describe model MBeans using the metadata classes specific to
model MBeans.
looks at how to describe fundamental and complex data types using the open
MBean data types provided and the metadata classes specific to open MBeans.
covers the MBean server from top to bottom. The MBean server's API, its
implementation, and details of how to use the MBean server to interact indirectly with
MBeans are given thorough discussion.
looks at the JMX notification model and the various interfaces and classes that
are provided by the JMX Reference Implementation (RI). It also discusses how to write a
notification listener, broadcaster, and filter.
covers dynamic loading and how to use the M-Let service to load MBeans
from anywhere on the network.
deals with the monitoring services, which include counter, gauge, and string
monitors.
5
  [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • red-hacjenda.opx.pl