|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaThread
Represents a Java thread
JavaRuntime.getThreads()
Field Summary | |
---|---|
static int |
STATE_ALIVE
The thread is alive |
static int |
STATE_BLOCKED_ON_MONITOR_ENTER
The thread is waiting to enter an object monitor |
static int |
STATE_IN_NATIVE
The thread is in native code |
static int |
STATE_IN_OBJECT_WAIT
The thread is in Object.wait |
static int |
STATE_INTERRUPTED
The thread has a pending interrupt |
static int |
STATE_PARKED
The thread has been deliberately removed from scheduling |
static int |
STATE_RUNNABLE
The thread can be run although may not be actually running |
static int |
STATE_SLEEPING
The thread is in the Thread.sleep method |
static int |
STATE_SUSPENDED
The thread has been suspended by Thread.suspend |
static int |
STATE_TERMINATED
The thread has terminated |
static int |
STATE_VENDOR_1
The thread is in a vendor specific state |
static int |
STATE_VENDOR_2
The thread is in a vendor specific state |
static int |
STATE_VENDOR_3
The thread is in a vendor specific state |
static int |
STATE_WAITING
The thread is in a waiting state in native code |
static int |
STATE_WAITING_INDEFINITELY
The thread is waiting on a monitor with no timeout value set |
static int |
STATE_WAITING_WITH_TIMEOUT
The thread is waiting on a monitor but will timeout at some point |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
ImageThread |
getImageThread()
Represents the joining point between the Java view of execution and the corresponding native view. |
ImagePointer |
getJNIEnv()
Get the address of the JNIEnv structure which represents this thread instance in JNI. |
java.lang.String |
getName()
Return the name of the thread. |
JavaObject |
getObject()
Fetch the java.lang.Thread associated with this thread. |
int |
getPriority()
Get the Java priority of the thread. |
java.util.Iterator |
getStackFrames()
Get the set of stack frames. |
java.util.Iterator |
getStackSections()
Get the set of ImageSections which make up the managed stack. |
int |
getState()
Get the state of the thread when the image was created. |
int |
hashCode()
|
Field Detail |
---|
static final int STATE_ALIVE
static final int STATE_TERMINATED
static final int STATE_RUNNABLE
static final int STATE_WAITING_INDEFINITELY
static final int STATE_WAITING_WITH_TIMEOUT
static final int STATE_SLEEPING
static final int STATE_WAITING
static final int STATE_IN_OBJECT_WAIT
static final int STATE_PARKED
static final int STATE_BLOCKED_ON_MONITOR_ENTER
static final int STATE_SUSPENDED
static final int STATE_INTERRUPTED
static final int STATE_IN_NATIVE
static final int STATE_VENDOR_1
static final int STATE_VENDOR_2
static final int STATE_VENDOR_3
Method Detail |
---|
ImagePointer getJNIEnv() throws CorruptDataException
CorruptDataException
int getPriority() throws CorruptDataException
CorruptDataException
Thread.getPriority()
JavaObject getObject() throws CorruptDataException
CorruptDataException
JavaObject
,
Thread
int getState() throws CorruptDataException
CorruptDataException
ImageThread getImageThread() throws CorruptDataException, DataUnavailable
CorruptDataException
- If the underlying resource describing the native representation of the thread
is damaged
DataUnavailable
- If no mapping is provided due to missing or limited underlying resources (this
exception added in DTFJ 1.1)ImageThread
java.util.Iterator getStackSections()
Some Runtime implementations may also use parts of the ImageThread's stack for ManagesStackFrames
ImageSection
,
ImageThread.getStackSections()
,
CorruptData
java.util.Iterator getStackFrames()
JavaStackFrame
,
CorruptData
java.lang.String getName() throws CorruptDataException
CorruptDataException
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |