- java.lang.Object
-
- com.ibm.dtfj.corereaders.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 Summary
Fields Modifier and Type Field Description protected NativeThreadContext
context
protected String
javaLangThreadObjectAddress
protected String
monitorId
protected String
state
protected String
threadDetails
protected String
threadId
protected String
threadName
-
Constructor Summary
Constructors Constructor Description GenericThread(GenericThread thread)
GenericThread(String threadId, long stackstart, int stacksize, int rva)
GenericThread(String id, String obj, String state, String monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNativeFrame(StackFrame f)
void
addRegister(Register r)
NativeThreadContext
getContext()
String
getJavaLangThreadObjectAddress()
String
getMonitorId()
Register
getNamedRegister(String name)
Iterator
getNativeFrames()
Iterator
getRegisters()
int
getStacksize()
long
getStackstart()
String
getState()
String
getThreadId()
String
getThreadName()
boolean
isJavaThread()
String
javaLangThreadObjectAddress()
boolean
matchIdOrName(String key)
void
printHeader(StringBuffer sb)
void
printNativeFrames(StringBuffer sb)
void
setContext(NativeThreadContext context)
void
setStacksize(int stacksize)
void
setStackstart(long stackstart)
-
-
-
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
-
context
protected NativeThreadContext context
-
-
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)
-
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)
-
getContext
public NativeThreadContext getContext()
- Returns:
- Returns the context.
-
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)
-
-