|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.sun.slamd.loadvariance.LoadVarianceControlThread
This class defines a thread that is used to keep track of when the actual job threads should start and stop their processing (which may need to happen several times over the course of a job). It does this by setting boolean variables that the job should watch in order to determine whether it should currently be running.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
LoadVarianceControlThread(LoadVarianceJobClass jobClass)
Creates a new instance of this load variance control thread that will be used to manage the provided job class. |
|
| Method Summary | |
void |
run()
Waits for the actual job to start, then sets flags that will be read by that job to indicate whether a given thread should be started or stopped. |
void |
startRunning()
Sets a flag that indicates that the control thread should start managing the job. |
void |
stopRunning()
Sets a flag that indicates that the control thread should stop managing the job. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LoadVarianceControlThread(LoadVarianceJobClass jobClass)
jobClass - The job class that this control thread will manage.| Method Detail |
public void startRunning()
public void stopRunning()
public void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||