org.mule.tck
Class TestCaseWatchdog

java.lang.Object
  extended by java.lang.Thread
      extended by org.mule.tck.TestCaseWatchdog
All Implemented Interfaces:
Runnable

public class TestCaseWatchdog
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  long delay
           
protected  TestCaseWatchdogTimeoutHandler handler
           
protected  Log log
           
protected static AtomicInteger threadNumber
           
protected  boolean timedOut
           
protected  TimeUnit unit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestCaseWatchdog(long delay, TimeUnit unit, TestCaseWatchdogTimeoutHandler timeoutHandler)
           
 
Method Summary
 void cancel()
           
 boolean isTimedOut()
           
 void run()
           
 
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

threadNumber

protected static final AtomicInteger threadNumber

log

protected final Log log

delay

protected final long delay

unit

protected final TimeUnit unit

handler

protected final TestCaseWatchdogTimeoutHandler handler

timedOut

protected volatile boolean timedOut
Constructor Detail

TestCaseWatchdog

public TestCaseWatchdog(long delay,
                        TimeUnit unit,
                        TestCaseWatchdogTimeoutHandler timeoutHandler)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

cancel

public void cancel()

isTimedOut

public boolean isTimedOut()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.