Package org.eclipse.mat.snapshot
Interface SnapshotFactory.Implementation
-
- All Known Implementing Classes:
SnapshotFactoryImpl
- Enclosing class:
- SnapshotFactory
public static interface SnapshotFactory.ImplementationDescribes the snapshot factory implementation. Implemented in the parser plugin. Implementations of this interface need to be registered using theorg.eclipse.mat.api.factoryextension point.- No Implement:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IOQLQuerycreateQuery(java.lang.String queryString)Run an OQL queryvoiddispose(ISnapshot snapshot)Free resources when the snapshot is no longer needed.java.util.List<SnapshotFormat>getSupportedFormats()Show which parsers the factory handlesISnapshotopenSnapshot(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 filearguments- extra arguments to change the indexing of the dumplistener- to show progress and errors- Returns:
- the snapshot
- Throws:
SnapshotException
-
dispose
void dispose(ISnapshot snapshot)
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
IOQLQuery createQuery(java.lang.String queryString) throws OQLParseException, SnapshotException
Run an OQL query- Parameters:
queryString- the OQL query- Returns:
- the result
- Throws:
OQLParseExceptionSnapshotException
-
getSupportedFormats
java.util.List<SnapshotFormat> getSupportedFormats()
Show which parsers the factory handles- Returns:
- a list of snapshot types
-
-