Modifier and Type | Field and Description |
---|---|
static int |
THREAD_STATUS_MONITOR
Constant indicating the thread is holding a monitor
Value is: 3 |
static int |
THREAD_STATUS_NOT_STARTED
Constant indicating the thread has not been started
Value is: 5 |
static int |
THREAD_STATUS_RUNNING
Constant indicating the thread is in a running state
Value is: 1 |
static int |
THREAD_STATUS_SLEEPING
Constant indicating the thread is in a sleeping state
Value is: 2 |
static int |
THREAD_STATUS_UNKNOWN
Constant indicating the state of the thread is unknown
Value is: -1 |
static int |
THREAD_STATUS_WAIT
Constant indicating the thread is waiting for a monitor
Value is: 4 |
static int |
THREAD_STATUS_ZOMBIE
Constant indicating the thread is in a zombie state
Value is: 0 |
Modifier and Type | Method and Description |
---|---|
StackFrame |
frame(int index)
Returns the stack frame for the given index in this thread.
|
int |
frameCount()
Returns the total stack frame count for this thread
|
java.util.List |
frames()
Returns the live list of stack frames for this thread.
|
void |
interrupt()
Send a request to interrupt this threads' execution.
|
boolean |
isAtBreakpoint()
Returns whether or not this thread is currently suspended on a breakpoint.
|
boolean |
isSuspended()
Returns if this thread is currently in a suspended state.
|
java.lang.String |
name()
Returns the simple name of this thread.
|
void |
resume()
Sends a request to resume this thread, iff it is in the suspended state.
|
int |
status()
Returns the status of this thread.
|
void |
suspend()
Sends a request to suspend this thread, iff it is not already in a suspended state.
|
virtualMachine
static final int THREAD_STATUS_UNKNOWN
-1
static final int THREAD_STATUS_ZOMBIE
0
static final int THREAD_STATUS_RUNNING
1
static final int THREAD_STATUS_SLEEPING
2
static final int THREAD_STATUS_MONITOR
3
static final int THREAD_STATUS_WAIT
4
static final int THREAD_STATUS_NOT_STARTED
5
int frameCount()
StackFrame frame(int index)
null
null
java.util.List frames()
null
null
void interrupt()
void resume()
void suspend()
int status()
THREAD_STATUS_MONITOR
,
THREAD_STATUS_NOT_STARTED
,
THREAD_STATUS_RUNNING
,
THREAD_STATUS_SLEEPING
,
THREAD_STATUS_UNKNOWN
,
THREAD_STATUS_WAIT
,
THREAD_STATUS_ZOMBIE
boolean isAtBreakpoint()
true
if the thread is suspended on a breakpoint false
otherwiseboolean isSuspended()
true
if the thread is suspended false
otherwisejava.lang.String name()
null
null
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.