This tutorial explains how to write a new analyzer module, starting with a very simple module and progressively enhancing it at each step to add more features, each of which highlights one of the key aspects of the Dump Analyzer APIs.
The example used in this tutorial focuses on an analyzer that examines some data structures that are specific to a WebSphere® Application Server. However, with very few exceptions (such as the base class and some of the WebSphere-specific utility analyzers invoked), the principles outlined here can apply to any analyzer whose main function is to examine Java™ data structures from a dump containing any type of runtime or application; not necessary a WebSphere Application Server runtime.
Please refer to the full API documentation in the reference section of the Dump Analyzer tool documentation for more details of the various classes and methods used in this tutorial.
- Initial setup to write and test WebSphere Application Server-related analyzers?
- The Hello World Analyzer
- A Simple Analyzer to Examine Data Structures
- Writing and Formatting Reports
- Printing Groups of ObjectWrapper Fields
- Working with J2SE Collections
- A Custom Wrapper Analyzer
- Extracting Values from Data Structures; Exception Handling
- Invoking Another Analyzer
- Generating Observations
- Invoking DTFJ Functions
- Generating Reports with a Summary and a Details Section
- Integrating the Analyzer into the Tool Menu
- Putting it together: the complete source code for the WASThreadPoolsSample analyzer
- Putting it together: sample output for the WASThreadPoolsSample analyzer