java.lang.Object
com.ibm.jvm.dtfjview.JdmpviewContextManager
- All Implemented Interfaces:
ISessionContextManager
Class for managing jdmpview contexts as it is possible to add and remove contexts
without exiting the application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(Image image, int major, int minor, ImageAddressSpace space, ImageProcess proc, JavaRuntime rt) Create a new context from DTFJ.getContext
(int id) Gets the context with the specified ID.Lists all contexts keyed by the URI from which they were derived.boolean
A number of internal operations which could affect the list of currently open and available contexts happen in an unlinked or asynchronous manner.boolean
Convenience method for determining if more than one context is currently open.void
Close and remove all contexts from this manager.void
removeContexts
(Image image) Remove all contexts which have been derived from an image source.void
removeContexts
(URI source) Remove all contexts which have been defined as coming from a specified URI (note that the URI may or may not be a file URI).
-
Constructor Details
-
JdmpviewContextManager
public JdmpviewContextManager()
-
-
Method Details
-
createContext
public ICombinedContext createContext(Image image, int major, int minor, ImageAddressSpace space, ImageProcess proc, JavaRuntime rt) Create a new context from DTFJ.- Parameters:
image
- the DTFJ Imagemajor
- the DTFJ API major numberminor
- the DTFJ API minor numberspace
- DTFJ address spaceproc
- DTFJ processrt
- DTFJ JavaRuntime- Returns:
- the newly created context
-
removeContexts
Description copied from interface:ISessionContextManager
Remove all contexts which have been derived from an image source. e.g. if there are multiple JVMs in a single core then closing the core file would result in all images derived from that file also being closed.- Specified by:
removeContexts
in interfaceISessionContextManager
- Parameters:
image
- the source image from which derived contexts should be closed.
-
removeContexts
Description copied from interface:ISessionContextManager
Remove all contexts which have been defined as coming from a specified URI (note that the URI may or may not be a file URI).- Specified by:
removeContexts
in interfaceISessionContextManager
-
removeAllContexts
public void removeAllContexts()Description copied from interface:ISessionContextManager
Close and remove all contexts from this manager.- Specified by:
removeAllContexts
in interfaceISessionContextManager
-
getContexts
Description copied from interface:ISessionContextManager
Lists all contexts keyed by the URI from which they were derived.- Specified by:
getContexts
in interfaceISessionContextManager
- Returns:
- map of URI's to contexts
-
hasMultipleContexts
public boolean hasMultipleContexts()Description copied from interface:ISessionContextManager
Convenience method for determining if more than one context is currently open. It is a less expensive call than getContexts()- Specified by:
hasMultipleContexts
in interfaceISessionContextManager
- Returns:
- true if more than one context is currently open and available
-
getContext
Description copied from interface:ISessionContextManager
Gets the context with the specified ID.- Specified by:
getContext
in interfaceISessionContextManager
- Parameters:
id
- the context ID- Returns:
- the located context or null if it was not found
-
hasChanged
public boolean hasChanged()Description copied from interface:ISessionContextManager
A number of internal operations which could affect the list of currently open and available contexts happen in an unlinked or asynchronous manner. By calling this method the session (or external clients) are able to tell if the list of contexts has changed and anything related to this such as a display may need to be update.- Specified by:
hasChanged
in interfaceISessionContextManager
- Returns:
-