org.eclipse.mat.dtfj
Class DTFJIndexBuilder

java.lang.Object
  extended by org.eclipse.mat.dtfj.DTFJIndexBuilder
All Implemented Interfaces:
IIndexBuilder

public class DTFJIndexBuilder
extends Object
implements IIndexBuilder

Reads and parses a DTFJ dump, building indexes which are then used by MAT to create a snapshot.


Constructor Summary
DTFJIndexBuilder()
           
 
Method Summary
 void cancel()
          called in case of error to delete any files / close any file handles
 void clean(int[] purgedMapping, IProgressListener listener)
          Memory Analyzer has discard unreachable objects, so the parser may need to known the discarded objects
 void fill(IPreliminaryIndex index, IProgressListener listener)
          pass1 and pass2 parsing
 void init(File file, String prefix)
          initialize with file and prefix (needed for naming conventions)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTFJIndexBuilder

public DTFJIndexBuilder()
Method Detail

cancel

public void cancel()
Description copied from interface: IIndexBuilder
called in case of error to delete any files / close any file handles

Specified by:
cancel in interface IIndexBuilder

clean

public void clean(int[] purgedMapping,
                  IProgressListener listener)
           throws IOException
Description copied from interface: IIndexBuilder
Memory Analyzer has discard unreachable objects, so the parser may need to known the discarded objects

Specified by:
clean in interface IIndexBuilder
Parameters:
purgedMapping - mapping from old id to new id, -1 indicates object has been discarded
listener - for progress and error reporting
Throws:
IOException

fill

public void fill(IPreliminaryIndex index,
                 IProgressListener listener)
          throws SnapshotException,
                 IOException
Description copied from interface: IIndexBuilder
pass1 and pass2 parsing

Specified by:
fill in interface IIndexBuilder
listener - for progress and error reporting
Throws:
SnapshotException
IOException

init

public void init(File file,
                 String prefix)
Description copied from interface: IIndexBuilder
initialize with file and prefix (needed for naming conventions)

Specified by:
init in interface IIndexBuilder
Parameters:
file - the dump file
prefix - used to build index files