Module openj9.dtfj

Class GenericThread


  • public class GenericThread
    extends Object
    This class represents a single "generic" thread within the dump and is basically a data holding class (together with a toString() that allows a nice view of the class ..... - what attributes does a "generic thread" have as against extenders representing a specific type of thread (viz a J9 thread) J9Thread extends this Generic thread. System threads are generic threads and do not necessarily have same detail as java threads
    • Field Detail

      • threadId

        protected String threadId
      • javaLangThreadObjectAddress

        protected String javaLangThreadObjectAddress
      • threadDetails

        protected String threadDetails
      • threadName

        protected String threadName
      • state

        protected String state
      • monitorId

        protected String monitorId
    • Constructor Detail

      • GenericThread

        public GenericThread​(String threadId,
                             long stackstart,
                             int stacksize,
                             int rva)
    • Method Detail

      • javaLangThreadObjectAddress

        public String javaLangThreadObjectAddress()
        Returns:
      • getThreadId

        public String getThreadId()
        Returns:
      • getMonitorId

        public String getMonitorId()
        Returns:
      • getState

        public String getState()
        Returns:
      • getThreadName

        public String getThreadName()
        Returns:
      • isJavaThread

        public boolean isJavaThread()
        Returns:
      • addRegister

        public void addRegister​(Register r)
      • addNativeFrame

        public void addNativeFrame​(StackFrame f)
      • getNamedRegister

        public Register getNamedRegister​(String name)
      • getRegisters

        public Iterator getRegisters()
      • getNativeFrames

        public Iterator getNativeFrames()
      • getStacksize

        public int getStacksize()
        Returns:
        Returns the stacksize.
      • getStackstart

        public long getStackstart()
        Returns:
        Returns the stackstart.
      • printHeader

        public void printHeader​(StringBuffer sb)
      • printNativeFrames

        public void printNativeFrames​(StringBuffer sb)
      • setContext

        public void setContext​(NativeThreadContext context)
        Parameters:
        context - The context to set.
      • getJavaLangThreadObjectAddress

        public String getJavaLangThreadObjectAddress()
        Returns:
        Returns the javaLangThreadObjectAddress.
      • setStacksize

        public void setStacksize​(int stacksize)
        Parameters:
        stacksize - The stacksize to set.
      • setStackstart

        public void setStackstart​(long stackstart)
        Parameters:
        stackstart - The stackstart to set.
      • matchIdOrName

        public boolean matchIdOrName​(String key)