Package org.eclipse.mat.dtfj
Class DTFJIndexBuilder
java.lang.Object
org.eclipse.mat.dtfj.DTFJIndexBuilder
- All Implemented Interfaces:
IIndexBuilder
Reads and parses a DTFJ dump, building indexes which are then used by MAT to create a snapshot.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
called in case of error to delete any files / close any file handlesvoid
clean
(int[] purgedMapping, IProgressListener listener) Memory Analyzer has discarded unreachable objects, so the parser may need to know the discarded objects.void
fill
(IPreliminaryIndex index, IProgressListener listener) Pass1 and pass2 parsing.void
Initialize with file and prefix (needed for naming conventions).
-
Constructor Details
-
DTFJIndexBuilder
public DTFJIndexBuilder()
-
-
Method Details
-
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 interfaceIIndexBuilder
-
clean
Description copied from interface:IIndexBuilder
Memory Analyzer has discarded unreachable objects, so the parser may need to know the discarded objects.- Specified by:
clean
in interfaceIIndexBuilder
- Parameters:
purgedMapping
- mapping from old id to new id, -1 indicates object has been discardedlistener
- for progress and error reporting- Throws:
IOException
- for example, problem writing a new index
-
fill
public void fill(IPreliminaryIndex index, IProgressListener listener) throws SnapshotException, IOException Description copied from interface:IIndexBuilder
Pass1 and pass2 parsing.- Specified by:
fill
in interfaceIIndexBuilder
listener
- for progress and error reporting- Throws:
SnapshotException
- major problem parsing the dumpIOException
- for example, problem reading the dump file or wrong file type
-
init
Description copied from interface:IIndexBuilder
Initialize with file and prefix (needed for naming conventions).- Specified by:
init
in interfaceIIndexBuilder
- Parameters:
file
- the dump fileprefix
- used to build index files
-