Package org.eclipse.mat.parser.internal
Class SnapshotFactoryImpl
- java.lang.Object
-
- org.eclipse.mat.parser.internal.SnapshotFactoryImpl
-
- All Implemented Interfaces:
SnapshotFactory.Implementation
public class SnapshotFactoryImpl extends Object implements SnapshotFactory.Implementation
-
-
Constructor Summary
Constructors Constructor Description SnapshotFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOQLQuerycreateQuery(String queryString)Run an OQL queryvoiddispose(ISnapshot snapshot)Free resources when the snapshot is no longer needed.List<SnapshotFormat>getSupportedFormats()Show which parsers the factory handlesISnapshotopenSnapshot(File file, Map<String,String> args, IProgressListener listener)Opens a snapshot
-
-
-
Method Detail
-
openSnapshot
public ISnapshot openSnapshot(File file, Map<String,String> args, IProgressListener listener) throws SnapshotException
Description copied from interface:SnapshotFactory.ImplementationOpens a snapshot- Specified by:
openSnapshotin 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
public void dispose(ISnapshot snapshot)
Description copied from interface:SnapshotFactory.ImplementationFree 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:
disposein interfaceSnapshotFactory.Implementation
-
createQuery
public IOQLQuery createQuery(String queryString) throws SnapshotException
Description copied from interface:SnapshotFactory.ImplementationRun an OQL query- Specified by:
createQueryin interfaceSnapshotFactory.Implementation- Parameters:
queryString- the OQL query- Returns:
- the result
- Throws:
OQLParseExceptionSnapshotException
-
getSupportedFormats
public List<SnapshotFormat> getSupportedFormats()
Description copied from interface:SnapshotFactory.ImplementationShow which parsers the factory handles- Specified by:
getSupportedFormatsin interfaceSnapshotFactory.Implementation- Returns:
- a list of snapshot types
-
-