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 ICoreFileReader
ICoreFileReader.DumpTestResult -
Field Summary
FieldsFields declared in class AbstractCoreReader
_fileReader, _memoryRanges, coreFileModifier and TypeFieldDescriptionprotected ImageInputStreamprotected Collection<? extends IMemorySource> protected FileFields declared in interface ICore
CORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTYFields declared in interface ICoreFileReader
J9DDR_CORE_READERS_LOGGER_NAMEModifier and TypeFieldDescriptionstatic final StringThis is the name of the java.util.logging.Logger subsystem to which the core readers pass verbose messages. -
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 AbstractCoreReader
checkOffset, close, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReaderModifier and TypeMethodDescriptionprotected booleancheckOffset(long location) voidclose()Close the handle to the core file and release any resourcesstatic Stringformat(int i) static Stringformat(long l) bytereadByte()byte[]readBytes(int len) voidreadFully(byte[] b) voidreadFully(byte[] buffer, int offset, int length) intreadInt()protected static intreadInt(byte[] data, int start) longreadLong()protected static longreadLong(byte[] data, int start) shortprotected Stringvoidseek(long pos) voidsetReader(ImageInputStream reader) This sets the reader to use to retrieve the underlying bytes to process.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface ICore
isTruncatedModifier and TypeMethodDescriptiondefault booleanIs this core file truncated (i.e. incomplete)?
-
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
-