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
FieldsFields declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
_fileReader, _memoryRanges, coreFileFields 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_PROPERTYFields declared in interface com.ibm.j9ddr.corereaders.ICoreFileReader
J9DDR_CORE_READERS_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is the dump format expressed as a string e.g. elf or xcoff.intgetPid()protected shortbooleanis64Bit()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 voidsetMemorySources(Collection<? extends IMemorySource> ranges) voidsetProcessID(int pid) protected voidsetProcessorArchitecture(short processorArchitecture, String procSubtype, int numberOfProcessors) protected voidsetWindowsType(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.booleanvalidDump(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, setReaderMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ICoreFileReaderCalled when a core reader should process the dump. This allows lazy initialisation of the readers especially when they are not subsequently used.- Specified by:
processDumpin interfaceICoreFileReader- Throws:
FileNotFoundExceptionInvalidDumpFormatExceptionIOException
-
validDump
public boolean validDump(byte[] data, long filesize) -
processDump
public ICore processDump(String path) throws FileNotFoundException, InvalidDumpFormatException, IOException Description copied from interface:ICoreFileReaderCalled when a core reader should process the dump. This allows lazy initialisation of the readers especially when they are not subsequently used.- Specified by:
processDumpin interfaceICoreFileReader- Throws:
FileNotFoundExceptionInvalidDumpFormatExceptionIOException
-
testDump
Description copied from interface:ICoreFileReaderTests the dump described by the path for compatibility with this CoreFileReader.- Specified by:
testDumpin 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:ICoreFileReaderTests the dump represented by the input stream for compatibility with this CoreFileReader.- Specified by:
testDumpin 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:ICoreThis 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:
getDumpFormatin interfaceICore- Returns:
-
getAddressSpaces
- Specified by:
getAddressSpacesin interfaceICore- Returns:
- Address spaces held in this core dump
-
getPlatform
- Specified by:
getPlatformin interfaceICore- Returns:
- Platform that created the dump
-
getExecutable
-
getModules
-
getPid
public int getPid() -
getThreads
-
getProperties
- Specified by:
getPropertiesin interfaceICore- Returns:
- Property set for this core
-