java.lang.Object
com.ibm.j9ddr.libraries.DTFJLibraryAdapter
- All Implemented Interfaces:
Builder,LibraryAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildAddressSpace(String name, int id) buildCorruptData(Object addressSpace, String message, long address) buildModule(String name, Properties properties, Iterator sections, Iterator symbols) buildModule(String name, Properties properties, Iterator sections, Iterator symbols, long loadAddress) buildModuleSection(Object addressSpace, String name, long imageStart, long imageEnd) buildProcess(Object addressSpace, String pid, String commandLine, Properties environment, Object currentThread, Iterator threads, Object executable, Iterator libraries, int addressSize) buildRegister(String name, Number value) buildStackFrame(Object addressSpace, long stackBasePointer, long pc) buildStackSection(Object addressSpace, long stackStart, long stackEnd) buildSymbol(Object addressSpace, String functionName, long relocatedFunctionAddress) buildThread(String name, Iterator registers, Iterator stackSections, Iterator stackFrames, Properties properties, int signalNumber) longRetrieve a list of error messages which have been produced during the library collectiongetLibraryList(File coreFile) Return a list of libraries which should be collected for the specified core filelonggetValueOfNamedRegister(List registers, String string) booleanisLibraryCollectionRequired(File coreFile) Determines if library collection is required for the specified core filestatic voidvoidsetCPUSubType(String subType) voidsetCPUType(String cpuType) voidsetCreationTime(long millis) voidsetExecutableUnavailable(String description) Called to inform the builder that the executable data cannot be trusted.void
-
Constructor Details
-
DTFJLibraryAdapter
public DTFJLibraryAdapter()
-
-
Method Details
-
main
-
isLibraryCollectionRequired
Description copied from interface:LibraryAdapterDetermines if library collection is required for the specified core file- Specified by:
isLibraryCollectionRequiredin interfaceLibraryAdapter- Parameters:
coreFile- core file to analyse- Returns:
- true if the libraries need to be collected (Linux/AIX), false if not (Windows/z/OS)
-
getLibraryList
Description copied from interface:LibraryAdapterReturn a list of libraries which should be collected for the specified core file- Specified by:
getLibraryListin interfaceLibraryAdapter- Parameters:
coreFile- core file to collect the libraries for- Returns:
- a list of paths, each of which point to a library entry
-
getErrorMessages
Description copied from interface:LibraryAdapterRetrieve a list of error messages which have been produced during the library collection- Specified by:
getErrorMessagesin interfaceLibraryAdapter- Returns:
- a list of error messages as strings
-
openFile
- Specified by:
openFilein interfaceBuilder- Throws:
IOException
-
buildModule
public Object buildModule(String name, Properties properties, Iterator sections, Iterator symbols, long loadAddress) - Specified by:
buildModulein interfaceBuilder
-
buildProcess
public Object buildProcess(Object addressSpace, String pid, String commandLine, Properties environment, Object currentThread, Iterator threads, Object executable, Iterator libraries, int addressSize) - Specified by:
buildProcessin interfaceBuilder
-
buildAddressSpace
- Specified by:
buildAddressSpacein interfaceBuilder
-
buildRegister
- Specified by:
buildRegisterin interfaceBuilder
-
buildStackSection
- Specified by:
buildStackSectionin interfaceBuilder
-
buildThread
public Object buildThread(String name, Iterator registers, Iterator stackSections, Iterator stackFrames, Properties properties, int signalNumber) - Specified by:
buildThreadin interfaceBuilder
-
buildModuleSection
- Specified by:
buildModuleSectionin interfaceBuilder
-
buildStackFrame
- Specified by:
buildStackFramein interfaceBuilder
-
buildSymbol
- Specified by:
buildSymbolin interfaceBuilder
-
buildCorruptData
- Specified by:
buildCorruptDatain interfaceBuilder
-
getEnvironmentAddress
public long getEnvironmentAddress()- Specified by:
getEnvironmentAddressin interfaceBuilder
-
getValueOfNamedRegister
- Specified by:
getValueOfNamedRegisterin interfaceBuilder
-
setOSType
-
setCPUType
- Specified by:
setCPUTypein interfaceBuilder
-
setCPUSubType
- Specified by:
setCPUSubTypein interfaceBuilder
-
setCreationTime
public void setCreationTime(long millis) - Specified by:
setCreationTimein interfaceBuilder
-
buildModule
-