Class JdmpviewContextManager

java.lang.Object
com.ibm.jvm.dtfjview.JdmpviewContextManager
All Implemented Interfaces:
ISessionContextManager

public class JdmpviewContextManager extends Object implements ISessionContextManager
Class for managing jdmpview contexts as it is possible to add and remove contexts without exiting the application.
  • 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 Image
      major - the DTFJ API major number
      minor - the DTFJ API minor number
      space - DTFJ address space
      proc - DTFJ process
      rt - DTFJ JavaRuntime
      Returns:
      the newly created context
    • removeContexts

      public void removeContexts(Image image)
      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 interface ISessionContextManager
      Parameters:
      image - the source image from which derived contexts should be closed.
    • removeContexts

      public void removeContexts(URI source)
      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 interface ISessionContextManager
    • removeAllContexts

      public void removeAllContexts()
      Description copied from interface: ISessionContextManager
      Close and remove all contexts from this manager.
      Specified by:
      removeAllContexts in interface ISessionContextManager
    • getContexts

      public Map<URI,ArrayList<ICombinedContext>> getContexts()
      Description copied from interface: ISessionContextManager
      Lists all contexts keyed by the URI from which they were derived.
      Specified by:
      getContexts in interface ISessionContextManager
      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 interface ISessionContextManager
      Returns:
      true if more than one context is currently open and available
    • getContext

      public ICombinedContext getContext(int id)
      Description copied from interface: ISessionContextManager
      Gets the context with the specified ID.
      Specified by:
      getContext in interface ISessionContextManager
      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 interface ISessionContextManager
      Returns: