Package org.eclipse.mat.parser.internal
Class SnapshotFactoryImpl
java.lang.Object
org.eclipse.mat.parser.internal.SnapshotFactoryImpl
- All Implemented Interfaces:
SnapshotFactory.Implementation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateQuery
(String queryString) Run an OQL queryvoid
Free resources when the snapshot is no longer needed.Show which parsers the factory handlesopenSnapshot
(File file, Map<String, String> args, IProgressListener listener) Opens a snapshot
-
Constructor Details
-
SnapshotFactoryImpl
public SnapshotFactoryImpl()
-
-
Method Details
-
openSnapshot
public ISnapshot openSnapshot(File file, Map<String, String> args, IProgressListener listener) throws SnapshotExceptionDescription copied from interface:SnapshotFactory.Implementation
Opens a snapshot- Specified by:
openSnapshot
in interfaceSnapshotFactory.Implementation
- Parameters:
file
- the dump fileargs
- extra arguments to change the indexing of the dumplistener
- to show progress and errors- Returns:
- the snapshot
- Throws:
SnapshotException
-
dispose
Description copied from interface:SnapshotFactory.Implementation
Free resources when the snapshot is no longer needed. Use instead ofISnapshot.dispose()
if the snapshot is obtained fromSnapshotFactory.Implementation.openSnapshot(File, Map, IProgressListener)
as openSnapshot() may obtain a copy from a cache.- Specified by:
dispose
in interfaceSnapshotFactory.Implementation
-
createQuery
Description copied from interface:SnapshotFactory.Implementation
Run an OQL query- Specified by:
createQuery
in interfaceSnapshotFactory.Implementation
- Parameters:
queryString
- the OQL query- Returns:
- the result
- Throws:
OQLParseException
SnapshotException
-
getSupportedFormats
Description copied from interface:SnapshotFactory.Implementation
Show which parsers the factory handles- Specified by:
getSupportedFormats
in interfaceSnapshotFactory.Implementation
- Returns:
- a list of snapshot types
-