Package org.eclipse.mat.parser.model
Class XSnapshotInfo
java.lang.Object
org.eclipse.mat.snapshot.SnapshotInfo
org.eclipse.mat.parser.model.XSnapshotInfo
- All Implemented Interfaces:
Serializable
Basic information about the snapshot which can be updated as
data is read from the dump.
- See Also:
-
Constructor Summary
ConstructorDescriptionSimple constructor, with real data added later using setters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCreationDate
(Date creationDate) Sets the creation date of the snapshotvoid
setIdentifierSize
(int identifierSize) Sets the identifier size for the snapshot.void
setJvmInfo
(String jvmInfo) Sets information about the JVM.void
setNumberOfClasses
(int numberOfClasses) Sets the total number of classes.void
setNumberOfClassLoaders
(int numberOfClassLoaders) Sets the total number of class loaders.void
setNumberOfGCRoots
(int numberOfGCRoots) Sets the number of GC roots.void
setNumberOfObjects
(int numberOfObjects) Sets the number of objects.void
Sets the path to the snapshot file.void
Set the prefix used for index files.void
setUsedHeapSize
(long usedHeapSize) Sets the total used heap size.Methods inherited from class org.eclipse.mat.snapshot.SnapshotInfo
getCreationDate, getIdentifierSize, getJvmInfo, getNumberOfClasses, getNumberOfClassLoaders, getNumberOfGCRoots, getNumberOfObjects, getPath, getPrefix, getProperty, getUsedHeapSize, setProperty, toString
-
Constructor Details
-
XSnapshotInfo
public XSnapshotInfo()Simple constructor, with real data added later using setters.
-
-
Method Details
-
setPrefix
Set the prefix used for index files.- Parameters:
prefix
- the path prefix- See Also:
-
setPath
Sets the path to the snapshot file.- Parameters:
path
- the file path- See Also:
-
setCreationDate
Sets the creation date of the snapshot- Parameters:
creationDate
- the date of creation- See Also:
-
setIdentifierSize
public void setIdentifierSize(int identifierSize) Sets the identifier size for the snapshot.- Parameters:
identifierSize
- the size in bits- See Also:
-
setJvmInfo
Sets information about the JVM.- Parameters:
jvmInfo
- a short description of the JVM- See Also:
-
setNumberOfClasses
public void setNumberOfClasses(int numberOfClasses) Sets the total number of classes.- Parameters:
numberOfClasses
- how many classes- See Also:
-
setNumberOfClassLoaders
public void setNumberOfClassLoaders(int numberOfClassLoaders) Sets the total number of class loaders.- Parameters:
numberOfClassLoaders
- how many class loaders- See Also:
-
setNumberOfGCRoots
public void setNumberOfGCRoots(int numberOfGCRoots) Sets the number of GC roots.- Parameters:
numberOfGCRoots
- the number of GC roots- See Also:
-
setNumberOfObjects
public void setNumberOfObjects(int numberOfObjects) Sets the number of objects.- Parameters:
numberOfObjects
- the total number of objects- See Also:
-
setUsedHeapSize
public void setUsedHeapSize(long usedHeapSize) Sets the total used heap size.- Parameters:
usedHeapSize
- the total heap size in bytes- See Also:
-