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
Constructors -
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.booleanA number of internal operations which could affect the list of currently open and available contexts happen in an unlinked or asynchronous manner.booleanConvenience method for determining if more than one context is currently open.voidClose and remove all contexts from this manager.voidremoveContexts(Image image) Remove all contexts which have been derived from an image source.voidremoveContexts(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:ISessionContextManagerRemove 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:
removeContextsin interfaceISessionContextManager- Parameters:
image- the source image from which derived contexts should be closed.
-
removeContexts
Description copied from interface:ISessionContextManagerRemove 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:
removeContextsin interfaceISessionContextManager
-
removeAllContexts
public void removeAllContexts()Description copied from interface:ISessionContextManagerClose and remove all contexts from this manager.- Specified by:
removeAllContextsin interfaceISessionContextManager
-
getContexts
Description copied from interface:ISessionContextManagerLists all contexts keyed by the URI from which they were derived.- Specified by:
getContextsin interfaceISessionContextManager- Returns:
- map of URI's to contexts
-
hasMultipleContexts
public boolean hasMultipleContexts()Description copied from interface:ISessionContextManagerConvenience method for determining if more than one context is currently open. It is a less expensive call than getContexts()- Specified by:
hasMultipleContextsin interfaceISessionContextManager- Returns:
- true if more than one context is currently open and available
-
getContext
Description copied from interface:ISessionContextManagerGets the context with the specified ID.- Specified by:
getContextin 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:ISessionContextManagerA 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:
hasChangedin interfaceISessionContextManager- Returns:
-