org.activemath.util.checks
Class DummyChecker

java.lang.Object
  extended by java.lang.Thread
      extended by org.activemath.util.checks.Checker
          extended by org.activemath.util.checks.DummyChecker
All Implemented Interfaces:
Runnable

public class DummyChecker
extends Checker

Dummy checker: randomly fails its check, randomly locks up for a short period of time to show working Checker page. It should only be used in a detailed display where one may see that the "check" is dummy, and it occassinoally failing is correct behaviour.

Version:
0.1

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.activemath.util.checks.Checker
aborted, BAD_STATE, BLOCKING_STATE, blockingPrepared, lastBlockingDate, lastBlockingDescription, lastFailureDate, lastFailureDescription, lastSuccessDate, retryInterval, SANE_STATE, shuttingDownSince, UNEXPECTED_BLOCKING_STATE
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DummyChecker(Subconfiguration config)
          wrapped constructor
 
Method Summary
 void run()
          runs the thread
 
Methods inherited from class org.activemath.util.checks.Checker
computeBlocking, getCheckerState, getLastFailureDate, getLastFailureDescription, getLastSuccessDate, isBlocking, prepareForBlocking, testComplete, testFails, testSucceeds, unprepareForBlocking
 
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
 

Constructor Detail

DummyChecker

public DummyChecker(Subconfiguration config)
wrapped constructor

Method Detail

run

public void run()
runs the thread

Specified by:
run in interface Runnable
Specified by:
run in class Checker