public class ThreadState
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ThreadState.CompoundThreadState |
Constructor and Description |
---|
ThreadState(java.lang.String name,
java.lang.String state) |
Modifier and Type | Method and Description |
---|---|
void |
addDeadlockedThread(ThreadState thread) |
void |
addWaitingThread(ThreadState thread) |
java.util.Collection<ThreadState> |
getAwaitingThreads() |
java.lang.String |
getExtraState() |
java.lang.String |
getJavaThreadState() |
java.lang.String |
getName() |
ThreadOperation |
getOperation() |
java.lang.String |
getStackTrace() |
java.lang.String |
getState() |
java.lang.String |
getThreadStateDetail() |
boolean |
isAwaitedBy(ThreadState thread) |
boolean |
isDaemon() |
boolean |
isDeadlocked() |
boolean |
isEDT() |
static boolean |
isEDT(java.lang.String name) |
boolean |
isEmptyStackTrace() |
boolean |
isKnownJDKThread() |
boolean |
isSleeping() |
boolean |
isWaiting() |
void |
setDaemon(boolean daemon) |
void |
setExtraState(java.lang.String extraState) |
void |
setJavaThreadState(java.lang.String javaThreadState) |
void |
setOperation(ThreadOperation operation) |
void |
setStackTrace(java.lang.String stackTrace,
boolean isEmpty) |
void |
setThreadStateDetail(java.lang.String threadStateDetail) |
java.lang.String |
toString() |
public java.lang.String getName()
public java.lang.String getState()
public java.lang.String getStackTrace()
public void setStackTrace(java.lang.String stackTrace, boolean isEmpty)
public boolean isKnownJDKThread()
public java.util.Collection<ThreadState> getAwaitingThreads()
public java.lang.String toString()
toString
in class java.lang.Object
public void setJavaThreadState(java.lang.String javaThreadState)
public void setThreadStateDetail(java.lang.String threadStateDetail)
public java.lang.String getJavaThreadState()
public java.lang.String getThreadStateDetail()
public boolean isEmptyStackTrace()
public java.lang.String getExtraState()
public void setExtraState(java.lang.String extraState)
public boolean isSleeping()
public boolean isAwaitedBy(ThreadState thread)
public void addWaitingThread(ThreadState thread)
public boolean isDeadlocked()
public void addDeadlockedThread(ThreadState thread)
public ThreadOperation getOperation()
public void setOperation(ThreadOperation operation)
public boolean isWaiting()
public boolean isEDT()
public static boolean isEDT(java.lang.String name)
public boolean isDaemon()
public void setDaemon(boolean daemon)