|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.util.janitor.JanitorThread
public class JanitorThread
Encapsulates a single job spawned by the janitor.
Field Summary | |
---|---|
static int |
jtfASSIGN
Started but thread has not yet started |
static int |
jtfDONE
Terminated and released. |
static int |
jtfIDLE
Idle and available for a job |
static int |
jtfRUNNING
Currently running |
static int |
jtfTERM
Terminated but not yet released |
protected JanitorTask |
m_jt
The janitor task executing in this thread |
protected int |
m_slot
The slot number for this Janitor Thread |
Constructor Summary | |
---|---|
JanitorThread(Janitor j,
int slot)
|
Method Summary | |
---|---|
void |
assignTask(JanitorTask jt)
|
protected boolean |
hasState(int state)
|
void |
run()
The main thread entry for the job... |
protected void |
setState(int state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int jtfIDLE
public static final int jtfASSIGN
public static final int jtfRUNNING
public static final int jtfTERM
public static final int jtfDONE
protected JanitorTask m_jt
protected int m_slot
Constructor Detail |
---|
public JanitorThread(Janitor j, int slot)
Method Detail |
---|
protected boolean hasState(int state)
protected void setState(int state)
public void assignTask(JanitorTask jt)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |