org.eclipse.mat.snapshot
Interface SnapshotFactory.Implementation

All Known Implementing Classes:
SnapshotFactoryImpl
Enclosing class:
SnapshotFactory

public static interface SnapshotFactory.Implementation

Describes the snapshot factory implementation. Implemented in the parser plugin.


Method Summary
 IOQLQuery createQuery(java.lang.String queryString)
          Run an OQL query
 void dispose(ISnapshot snapshot)
          Free resources when the snapshot is no longer needed.
 java.util.List<SnapshotFormat> getSupportedFormats()
          Show which parsers the factory handles
 ISnapshot openSnapshot(java.io.File file, java.util.Map<java.lang.String,java.lang.String> arguments, IProgressListener listener)
          Opens a snapshot
 

Method Detail

openSnapshot

ISnapshot openSnapshot(java.io.File file,
                       java.util.Map<java.lang.String,java.lang.String> arguments,
                       IProgressListener listener)
                       throws SnapshotException
Opens a snapshot

Parameters:
file - the dump file
arguments - extra arguments to change the indexing of the dump
listener - to show progress and errors
Returns:
the snapshot
Throws:
SnapshotException

dispose

void dispose(ISnapshot snapshot)
Free resources when the snapshot is no longer needed.

Parameters:
snapshot -

createQuery

IOQLQuery createQuery(java.lang.String queryString)
                      throws OQLParseException,
                             SnapshotException
Run an OQL query

Parameters:
queryString - the OQL query
Returns:
the result
Throws:
OQLParseException
SnapshotException

getSupportedFormats

java.util.List<SnapshotFormat> getSupportedFormats()
Show which parsers the factory handles

Returns:
a list of snapshot types