|
Purple Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Watches threads.
| Field Summary | |
static int |
IDLE
blocked on something like an input queue -- waiting to be awakened |
static int |
RUNNING
actively doing its thing (or blocked trying) |
static java.lang.String[] |
states
|
static int |
STOPPED
stopped running |
| Method Summary | |
void |
set(java.lang.String note)
register that the current thread is now running, and doing something interesting, represented by the note param. |
void |
set(java.lang.Thread t,
int state,
java.lang.String note)
|
void |
setIdle()
register that the current thread is now idle (which means it's OK if it's blocked, waiting on IO for example) |
| Field Detail |
public static final int IDLE
public static final int RUNNING
public static final int STOPPED
public static final java.lang.String[] states
| Method Detail |
public void set(java.lang.Thread t,
int state,
java.lang.String note)
t - the thread we are watchingstate - the state constantnote - what the thread is doingpublic void setIdle()
public void set(java.lang.String note)
|
Documentation generated March 5 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||