public class SnapshotFactoryImpl extends Object implements SnapshotFactory.Implementation
Constructor and Description |
---|
SnapshotFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
IOQLQuery |
createQuery(String queryString)
Run an OQL query
|
void |
dispose(ISnapshot snapshot)
Free resources when the snapshot is no longer needed.
|
List<SnapshotFormat> |
getSupportedFormats()
Show which parsers the factory handles
|
ISnapshot |
openSnapshot(File file,
Map<String,String> args,
IProgressListener listener)
Opens a snapshot
|
public ISnapshot openSnapshot(File file, Map<String,String> args, IProgressListener listener) throws SnapshotException
SnapshotFactory.Implementation
openSnapshot
in interface SnapshotFactory.Implementation
file
- the dump fileargs
- extra arguments to change the indexing of the dumplistener
- to show progress and errorsSnapshotException
public void dispose(ISnapshot snapshot)
SnapshotFactory.Implementation
ISnapshot.dispose()
if the snapshot is obtained from SnapshotFactory.Implementation.openSnapshot(File, Map, IProgressListener)
as openSnapshot() may obtain a copy from a cache.dispose
in interface SnapshotFactory.Implementation
public IOQLQuery createQuery(String queryString) throws SnapshotException
SnapshotFactory.Implementation
createQuery
in interface SnapshotFactory.Implementation
queryString
- the OQL queryOQLParseException
SnapshotException
public List<SnapshotFormat> getSupportedFormats()
SnapshotFactory.Implementation
getSupportedFormats
in interface SnapshotFactory.Implementation