java.lang.Object
com.ibm.j9ddr.libraries.DTFJLibraryAdapter
- All Implemented Interfaces:
Builder
,LibraryAdapter
-
Constructor Summary
-
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) long
Retrieve 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 filelong
getValueOfNamedRegister
(List registers, String string) boolean
isLibraryCollectionRequired
(File coreFile) Determines if library collection is required for the specified core filestatic void
void
setCPUSubType
(String subType) void
setCPUType
(String cpuType) void
setCreationTime
(long millis) void
setExecutableUnavailable
(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:LibraryAdapter
Determines if library collection is required for the specified core file- Specified by:
isLibraryCollectionRequired
in 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:LibraryAdapter
Return a list of libraries which should be collected for the specified core file- Specified by:
getLibraryList
in 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:LibraryAdapter
Retrieve a list of error messages which have been produced during the library collection- Specified by:
getErrorMessages
in interfaceLibraryAdapter
- Returns:
- a list of error messages as strings
-
openFile
- Specified by:
openFile
in interfaceBuilder
- Throws:
IOException
-
buildModule
public Object buildModule(String name, Properties properties, Iterator sections, Iterator symbols, long loadAddress) - Specified by:
buildModule
in 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:
buildProcess
in interfaceBuilder
-
buildAddressSpace
- Specified by:
buildAddressSpace
in interfaceBuilder
-
buildRegister
- Specified by:
buildRegister
in interfaceBuilder
-
buildStackSection
- Specified by:
buildStackSection
in interfaceBuilder
-
buildThread
public Object buildThread(String name, Iterator registers, Iterator stackSections, Iterator stackFrames, Properties properties, int signalNumber) - Specified by:
buildThread
in interfaceBuilder
-
buildModuleSection
- Specified by:
buildModuleSection
in interfaceBuilder
-
buildStackFrame
- Specified by:
buildStackFrame
in interfaceBuilder
-
buildSymbol
- Specified by:
buildSymbol
in interfaceBuilder
-
buildCorruptData
- Specified by:
buildCorruptData
in interfaceBuilder
-
getEnvironmentAddress
public long getEnvironmentAddress()- Specified by:
getEnvironmentAddress
in interfaceBuilder
-
getValueOfNamedRegister
- Specified by:
getValueOfNamedRegister
in interfaceBuilder
-
setOSType
-
setCPUType
- Specified by:
setCPUType
in interfaceBuilder
-
setCPUSubType
- Specified by:
setCPUSubType
in interfaceBuilder
-
setCreationTime
public void setCreationTime(long millis) - Specified by:
setCreationTime
in interfaceBuilder
-
buildModule
-