edu.wpi.prc.server.validator
Class DefaultValidatorThread

java.lang.Object
  extended by java.lang.Thread
      extended by edu.wpi.prc.server.validator.DefaultValidatorThread
All Implemented Interfaces:
java.lang.Runnable

public class DefaultValidatorThread
extends java.lang.Thread

This is the default validator. It simply requests results from the server and immediately marks them as valid. For canonical results, it selects the first reselt to be the canonical result.

Author:
James Baldassari

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean isRunning
           
private static int RETRY_DELAY
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DefaultValidatorThread()
           
 
Method Summary
 void run()
          Requests results from the server and immediately validates them.
 void shutdown()
          Shuts down the thread.
 
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

RETRY_DELAY

private static final int RETRY_DELAY
See Also:
Constant Field Values

isRunning

private boolean isRunning
Constructor Detail

DefaultValidatorThread

public DefaultValidatorThread()
Method Detail

run

public void run()
Requests results from the server and immediately validates them.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

shutdown

public void shutdown()
Shuts down the thread.