Class MiniDumpReader
java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
com.ibm.j9ddr.corereaders.minidump.MiniDumpReader
- All Implemented Interfaces:
ICore
,ICoreFileReader
-
Nested Class Summary
Nested classes/interfaces declared in interface com.ibm.j9ddr.corereaders.ICoreFileReader
ICoreFileReader.DumpTestResult
-
Field Summary
Fields declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
_fileReader, _memoryRanges, coreFile
Fields declared in interface com.ibm.j9ddr.corereaders.ICore
CORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTY
Fields declared in interface com.ibm.j9ddr.corereaders.ICoreFileReader
J9DDR_CORE_READERS_LOGGER_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is the dump format expressed as a string e.g. elf or xcoff.int
getPid()
protected short
boolean
is64Bit()
processDump
(File file) processDump
(String path) Called when a core reader should process the dump.Called when a core reader should process the dump.protected void
setMemorySources
(Collection<? extends IMemorySource> ranges) void
setProcessID
(int pid) protected void
setProcessorArchitecture
(short processorArchitecture, String procSubtype, int numberOfProcessors) protected void
setWindowsType
(byte type, int major, int minor, int buildNo) Tests the dump described by the path for compatibility with this CoreFileReader.Tests the dump represented by the input stream for compatibility with this CoreFileReader.boolean
validDump
(byte[] data, long filesize) Methods declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
checkOffset, close, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReader
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface com.ibm.j9ddr.corereaders.ICore
isTruncated
-
Field Details
-
WINDOWS_BUILDNO_PROPERTY
- See Also:
-
-
Constructor Details
-
MiniDumpReader
public MiniDumpReader()
-
-
Method Details
-
processDump
public ICore processDump(File file) throws FileNotFoundException, InvalidDumpFormatException, IOException -
processDump
public ICore processDump(ImageInputStream in) throws FileNotFoundException, InvalidDumpFormatException, IOException Description copied from interface:ICoreFileReader
Called when a core reader should process the dump. This allows lazy initialisation of the readers especially when they are not subsequently used.- Specified by:
processDump
in interfaceICoreFileReader
- Throws:
FileNotFoundException
InvalidDumpFormatException
IOException
-
validDump
public boolean validDump(byte[] data, long filesize) -
processDump
public ICore processDump(String path) throws FileNotFoundException, InvalidDumpFormatException, IOException Description copied from interface:ICoreFileReader
Called when a core reader should process the dump. This allows lazy initialisation of the readers especially when they are not subsequently used.- Specified by:
processDump
in interfaceICoreFileReader
- Throws:
FileNotFoundException
InvalidDumpFormatException
IOException
-
testDump
Description copied from interface:ICoreFileReader
Tests the dump described by the path for compatibility with this CoreFileReader.- Specified by:
testDump
in interfaceICoreFileReader
- Parameters:
path
- Path to dump file.- Throws:
IOException
- If there was an IO problem reading the file (disk full etc.). Note that FileNotFound should be handled with DumpTestResult.
-
testDump
Description copied from interface:ICoreFileReader
Tests the dump represented by the input stream for compatibility with this CoreFileReader.- Specified by:
testDump
in interfaceICoreFileReader
- Throws:
IOException
- If there was an IO problem reading the file (disk full etc.). Note that FileNotFound should be handled with DumpTestResult.
-
is64Bit
public boolean is64Bit() -
setProcessorArchitecture
protected void setProcessorArchitecture(short processorArchitecture, String procSubtype, int numberOfProcessors) -
setWindowsType
protected void setWindowsType(byte type, int major, int minor, int buildNo) -
setProcessID
public void setProcessID(int pid) -
addModule
-
getProcessorArchitecture
protected short getProcessorArchitecture() -
setMemorySources
-
getDumpFormat
Description copied from interface:ICore
This is the dump format expressed as a string e.g. elf or xcoff. It is recommended that this name is in lower case.- Specified by:
getDumpFormat
in interfaceICore
- Returns:
-
getAddressSpaces
- Specified by:
getAddressSpaces
in interfaceICore
- Returns:
- Address spaces held in this core dump
-
getPlatform
- Specified by:
getPlatform
in interfaceICore
- Returns:
- Platform that created the dump
-
getExecutable
-
getModules
-
getPid
public int getPid() -
getThreads
-
getProperties
- Specified by:
getProperties
in interfaceICore
- Returns:
- Property set for this core
-