|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.lmu.liftor.Person.Deity
The Deity class manages the heap of runnable people and tosses them into its private thread pool when they are ready to run.
Each Deity has its own executor that runs the people it pulls from its runQueue. Each person has a deity which they submit to in order to get themselves executed, er, run.
| Field Summary | |
java.lang.String |
name
|
| Method Summary | |
protected void |
abandon(Person p)
This method is called when a person abandon's their deity. |
protected void |
convert(Person p)
Convert the given person to worship this deity. |
int |
getIdleCount()
|
int |
getMaximumPoolSize()
|
int |
getPoolSize()
|
int |
getPoolUsage()
|
int |
getWorshiperCount()
|
void |
poke()
Notifies this deity that there may be a new higher priority supplicant. |
void |
run()
|
void |
start()
Start the deity (if necessary). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final java.lang.String name
| Method Detail |
public int getPoolSize()
public int getIdleCount()
public int getPoolUsage()
public int getMaximumPoolSize()
public int getWorshiperCount()
protected void convert(Person p)
protected void abandon(Person p)
public void run()
run in interface java.lang.Runnablepublic void start()
public void poke()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||