Interface IDTFJContext
- All Superinterfaces:
IContext
- All Known Subinterfaces:
ICombinedContext
- All Known Implementing Classes:
CombinedContext
,DTFJContext
,EmptyDTFJContext
-
Method Summary
Modifier and TypeMethodDescriptionThe address space for this context.getImage()
A simple Java bean which allows access to the data on DTFJ image interface.int
The major version of the DTFJ API for this context.int
The minor version of the DTFJ API for this context.The process for this context.The Java runtime for this context.boolean
hasPropertyBeenSet
(String name) Used to determine if a property has been set in the context property bag, and that the value of that property is TRUEMethods declared in interface com.ibm.java.diagnostics.utils.IContext
execute, execute, execute, getCommands, getLastCommandException, getLastExecutedCommand, getPluginClassloader, getProperties, isCommandRecognised, refresh
-
Method Details
-
getMajorVersion
int getMajorVersion()The major version of the DTFJ API for this context.- Returns:
- major version number
-
getMinorVersion
int getMinorVersion()The minor version of the DTFJ API for this context.- Returns:
- minor version number
-
getAddressSpace
ImageAddressSpace getAddressSpace()The address space for this context. This may or may not contain any processes.- Returns:
- the image address space
-
getProcess
ImageProcess getProcess()The process for this context. A process may or may not contain a Java runtime.- Returns:
-
getRuntime
JavaRuntime getRuntime()The Java runtime for this context.- Returns:
- the runtime or null if there is no runtime available
-
getImage
DTFJImageBean getImage()A simple Java bean which allows access to the data on DTFJ image interface. This removes the requirement to provide a command/plugin with a direct reference to the Image.- Returns:
- the bean
-
hasPropertyBeenSet
Used to determine if a property has been set in the context property bag, and that the value of that property is TRUE- Parameters:
name
- property name to check- Returns:
- true if the property exists and Boolean.parseValue() returns true
-