com.ibm.jvm.ras.findroots
Class HeapdumpReader

java.lang.Object
  extended bycom.ibm.jvm.ras.findroots.Base
      extended bycom.ibm.jvm.ras.findroots.HeapdumpReader

public class HeapdumpReader
extends com.ibm.jvm.ras.findroots.Base

This class parses a Phd format heapdump file. To use it, first create the object (see HeapdumpReader(java.lang.String)) passing the file name and then parse it (see parse(com.ibm.jvm.ras.findroots.PortableHeapDumpListener)) passing it an object that obeys the PortableHeapDumpListener interface.


Constructor Summary
HeapdumpReader(java.lang.String filename)
          Create a new HeapdumpReader object from the given file.
 
Method Summary
 java.lang.String full_version()
          Returns the full version for the JVM that created this heapdump.
 boolean is64Bit()
          Returns true if this is a 64-bit heap dump.
 void parse(PortableHeapDumpListener listener)
          Parse the heapdump.
 int version()
          Returns the Phd version number.
 
Methods inherited from class com.ibm.jvm.ras.findroots.Base
Assert, debug, hex, hex, log, setDebug, setVerbose, trace, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapdumpReader

public HeapdumpReader(java.lang.String filename)
Create a new HeapdumpReader object from the given file. The file must be in Phd format.

Method Detail

full_version

public java.lang.String full_version()
Returns the full version for the JVM that created this heapdump.


version

public int version()
Returns the Phd version number. Recognized values are 4 and 5.


is64Bit

public boolean is64Bit()
Returns true if this is a 64-bit heap dump.


parse

public void parse(PortableHeapDumpListener listener)
           throws java.lang.Exception
Parse the heapdump. This uses callbacks via the PortableHeapDumpListener interface. Any exceptions that the listener raises are propagated back.

Throws:
java.lang.Exception


© Copyright IBM Corp. 2007. All Rights Reserved.