Package 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.
Implementations of this interface need to be
registered using the
org.eclipse.mat.api.factory extension point.- No Implement:
-
Method Summary
Modifier and TypeMethodDescriptioncreateQuery(String queryString) Run an OQL queryvoidFree resources when the snapshot is no longer needed.Show which parsers the factory handlesopenSnapshot(File file, Map<String, String> arguments, IProgressListener listener) Opens a snapshot
-
Method Details
-
openSnapshot
ISnapshot openSnapshot(File file, Map<String, String> arguments, IProgressListener listener) throws SnapshotExceptionOpens a snapshot- Parameters:
file- the dump filearguments- extra arguments to change the indexing of the dumplistener- to show progress and errors- Returns:
- the snapshot
- Throws:
SnapshotException
-
dispose
Free resources when the snapshot is no longer needed. Use instead ofISnapshot.dispose()if the snapshot is obtained fromopenSnapshot(File, Map, IProgressListener)as openSnapshot() may obtain a copy from a cache.- Parameters:
snapshot-
-
createQuery
Run an OQL query- Parameters:
queryString- the OQL query- Returns:
- the result
- Throws:
OQLParseExceptionSnapshotException
-
getSupportedFormats
List<SnapshotFormat> getSupportedFormats()Show which parsers the factory handles- Returns:
- a list of snapshot types
-