- java.lang.Object
-
- com.ibm.dtfj.phd.PHDImage
-
- All Implemented Interfaces:
Image
,ManagedImage
public class PHDImage extends Object implements ManagedImage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCreationTime()
Use the filename if of the form heapdump.yyyyMMdd.HHmmss.pid.seq.phd else the file datevoid
registerReader(HeapdumpReader reader)
Register a HeapdumpReader as needing to be closed when Image.close() is called on this Image.void
unregisterReader(HeapdumpReader reader)
Unregister a HeapdumpReader so it no longer needs to be closed.-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.image.Image
close, getAddressSpaces, getCreationTimeNanos, getHostName, getInstalledMemory, getIPAddresses, getProcessorCount, getProcessorSubType, getProcessorType, getProperties, getSource, getSystemSubType, getSystemType, isTruncated
-
Methods declared in interface com.ibm.dtfj.utils.ManagedImage
getImageSource, setImageSource
-
-
-
-
Method Detail
-
getCreationTime
public long getCreationTime() throws DataUnavailable
Use the filename if of the form heapdump.yyyyMMdd.HHmmss.pid.seq.phd else the file date- Specified by:
getCreationTime
in interfaceImage
- Returns:
- the image creation time in milliseconds since 1970
- Throws:
DataUnavailable
-
registerReader
public void registerReader(HeapdumpReader reader)
Register a HeapdumpReader as needing to be closed when Image.close() is called on this Image.
-
unregisterReader
public void unregisterReader(HeapdumpReader reader)
Unregister a HeapdumpReader so it no longer needs to be closed. This should only be called by HeapdumpReader.close() to make sure that we don't leak readers.
-
-