|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.wpi.prc.server.spotcheck.SpotCheckThread
public class SpotCheckThread
Creates a specified number of spot checks by taking work units from the ingress work queue, computing their results, then adding the work units and results to the spot check queues.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private TransitionerQueue<WorkUnit> |
ingressWork
|
private int |
minNumSpotChecks
|
private java.lang.String |
scienceAppURI
|
private TransitionerQueue<Result> |
spotCheckResults
|
private TransitionerQueue<WorkUnit> |
spotCheckWork
|
private org.apache.xmlrpc.XmlRpcClient |
xmlrpcClient
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SpotCheckThread(TransitionerQueue<WorkUnit> ingressWork,
TransitionerQueue<WorkUnit> spotCheckWork,
TransitionerQueue<Result> spotCheckResult,
int minNumSpotChecks)
Initializes the spot-check thread. |
Method Summary | |
---|---|
private void |
initXmlRpcClient()
Initializes the XML-RPC clients used for communicating with the project server and science application. |
void |
run()
Creates as many spot checks as needed by invoking the science application via XML-RPC. |
void |
shutdown()
Shuts down the SpotCheckThread. |
private void |
shutdownScienceApplication()
Shuts down the science application via XML-RPC. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
Field Detail |
---|
private TransitionerQueue<WorkUnit> ingressWork
private TransitionerQueue<WorkUnit> spotCheckWork
private TransitionerQueue<Result> spotCheckResults
private int minNumSpotChecks
private java.lang.String scienceAppURI
private org.apache.xmlrpc.XmlRpcClient xmlrpcClient
Constructor Detail |
---|
public SpotCheckThread(TransitionerQueue<WorkUnit> ingressWork, TransitionerQueue<WorkUnit> spotCheckWork, TransitionerQueue<Result> spotCheckResult, int minNumSpotChecks)
ingressWork
- The transitioner's ingress work queue.spotCheckWork
- The transitioner's spot check work unit queue.spotCheckResult
- The transitioner's spot check result queue.minNumSpotChecks
- The number of required spot checks.Method Detail |
---|
private void initXmlRpcClient()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void shutdownScienceApplication()
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |