public interface JavaThread
JavaRuntime.getThreads()
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
JavaObject |
getBlockingObject()
For threads that are in STATE_BLOCKED_ON_MONITOR_ENTER this method returns the JavaObject who's monitor they are blocked on.
|
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.
|
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.
|
Iterator |
getStackFrames()
Get the set of stack frames.
|
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()
Answers an integer hash code for the receiver.
|
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
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 damagedDataUnavailable
- If no mapping is provided due to missing or limited underlying resources (this
exception added in DTFJ 1.1)ImageThread
Iterator getStackSections()
Some Runtime implementations may also use parts of the ImageThread's stack for ManagesStackFrames
ImageSection
,
ImageThread.getStackSections()
,
CorruptData
Iterator getStackFrames()
JavaStackFrame
,
CorruptData
String getName() throws CorruptDataException
CorruptDataException
JavaObject getBlockingObject() throws CorruptDataException, DataUnavailable
CorruptDataException
DataUnavailable
boolean equals(Object obj)
java.lang.Object
equals
in class Object
obj
- Object.hashCode()
int hashCode()
java.lang.Object
true
when passed to
.equals
must answer the same value for this
method.hashCode
in class Object
Object.equals(java.lang.Object)
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.