- All Superinterfaces:
- IContext,- IDTFJContext
- All Known Implementing Classes:
- CombinedContext
A combined context is an extended DTFJ context which also contains a DDR context.
 This is to allow commands to be passed down the stack starting with DTFJ and then
 moving to DDR if necessary.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddisplayContext(IOutputManager out, boolean shortFormat) Display the contexts which are present in the core file currently being analysed.A handle to the underlying DDR interactive sessionGet the exception which was thrown when trying to start a DDR interactive session.intgetID()Contexts have a unique positive numeric identifier within a session.booleanFlag to indicate if an associated DDR context is available as well as the DTFJ one.voidCalled when this context becomes the current context to allow any initialisation to take place.voidsetID(int id) Sets the numeric ID for this context.Methods declared in interface com.ibm.java.diagnostics.utils.IContextexecute, execute, execute, getCommands, getLastCommandException, getLastExecutedCommand, getPluginClassloader, getProperties, isCommandRecognised, refreshMethods declared in interface com.ibm.java.diagnostics.utils.IDTFJContextgetAddressSpace, getImage, getMajorVersion, getMinorVersion, getProcess, getRuntime, hasPropertyBeenSet
- 
Method Details- 
getIDint getID()Contexts have a unique positive numeric identifier within a session. This number always increases if new contexts are created via the open command rather than attempting to re-use any already used IDs.- Returns:
- the ID for this context
 
- 
setIDvoid setID(int id) Sets the numeric ID for this context. This setter is provided so as to allow context creation before assigning the ID. However once set it should not be changed. Later implementations may enforce this.- Parameters:
- id- the context ID
 
- 
getDDRIObjectObject getDDRIObject()A handle to the underlying DDR interactive session- Returns:
- a valid session or null if the core file is not DDR enabled
 
- 
getDDRStartupExceptionThrowable getDDRStartupException()Get the exception which was thrown when trying to start a DDR interactive session.- Returns:
- the exception or null if the session started without error.
 
- 
displayContextDisplay the contexts which are present in the core file currently being analysed.- Parameters:
- shortFormat- true for short format which just displays the first line of the java -version string
 
- 
setAsCurrentvoid setAsCurrent()Called when this context becomes the current context to allow any initialisation to take place.
- 
isDDRAvailableboolean isDDRAvailable()Flag to indicate if an associated DDR context is available as well as the DTFJ one.- Returns:
- true if DDR is available
 
 
-