Java Reference
In-Depth Information
As you can see, with the query mechanism of the MBean server, you can build
complex and specific queries to return useful results about the MBean contained
in an agent.
8.4 Summary
This chapter began by focusing more closely on the MBean server than previous
chapters. You had already used the MBean server a little, but before we could
move on to more agent-level material, we needed to cover the MBeanServer inter-
face in greater detail. This chapter introduced you to every method in the inter-
face (except some overloaded versions), including their purpose and exceptions.
After we discussed the MBeanServer interface, you learned how to turn query
sentences into objects that can be used to filter through and identify MBeans in
the MBean server. The query capability of the MBean server is a powerful tool
when an MBean server contains a large number of MBeans. Using the querying
mechanism, you can retrieve specific MBeans without manually examining the
contents of each to discover the one you need. You learned not only how to con-
struct queries, but also how to refine their scope through the use of partial object
names. We presented several query examples to demonstrate how to build sim-
ple and complex expressions.
Chapter 9 focuses on using and building protocol adapters and connectors
for JMX agents. In that chapter, you will be exposed to the RMI connector con-
tributed by Sun Microsystems, and you will build your own Jini connector and
TCP adapter.
Search WWH ::




Custom Search