|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.snapshot.SnapshotFactory
public final class SnapshotFactory
ISnapshot
factory
Nested Class Summary | |
---|---|
static interface |
SnapshotFactory.Implementation
Describes the snapshot factory implementation. |
Method Summary | |
---|---|
static IOQLQuery |
createQuery(String queryString)
Factory to create an OQL Query. |
static void |
dispose(ISnapshot snapshot)
Dispose the whole snapshot. |
static List<SnapshotFormat> |
getSupportedFormats()
Get the types of the parsers. |
static ISnapshot |
openSnapshot(File file,
IProgressListener listener)
Create a snapshot Object from a file representation of a snapshot. |
static ISnapshot |
openSnapshot(File file,
Map<String,String> arguments,
IProgressListener listener)
Create a snapshot Object from a file representation of a snapshot. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ISnapshot openSnapshot(File file, IProgressListener listener) throws SnapshotException
file
- file from which the snapshot will be constructed (type will be
derived from the file name extension)listener
- progress listener informing about the current state of
execution
SnapshotException
public static ISnapshot openSnapshot(File file, Map<String,String> arguments, IProgressListener listener) throws SnapshotException
file
- file from which the snapshot will be constructed (type will be
derived from the file name extension)arguments
- parsing argumentslistener
- progress listener informing about the current state of
execution
SnapshotException
public static void dispose(ISnapshot snapshot)
Please call this method prior to dropping the last reference to the snapshot as this method ensures the proper return of all resources (e.g. main memory, file and socket handles...) when the last user has disposed it through the snapshot factory. After calling this method the snapshot can't be used anymore.
snapshot
- snapshot which should be disposedpublic static IOQLQuery createQuery(String queryString) throws OQLParseException, SnapshotException
OQLParseException
- if the OQL contains parsing errors
SnapshotException
public static List<SnapshotFormat> getSupportedFormats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |