org.mule.tck
Class TestCaseWatchdog

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

public class TestCaseWatchdog
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  long delay
           
protected  TestCaseWatchdogTimeoutHandler handler
           
protected  Log log
           
protected static edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger threadNumber
           
protected  boolean timedOut
           
protected  edu.emory.mathcs.backport.java.util.concurrent.TimeUnit unit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestCaseWatchdog(long delay, edu.emory.mathcs.backport.java.util.concurrent.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 edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger threadNumber

log

protected final Log log

delay

protected final long delay

unit

protected final edu.emory.mathcs.backport.java.util.concurrent.TimeUnit unit

handler

protected final TestCaseWatchdogTimeoutHandler handler

timedOut

protected volatile boolean timedOut
Constructor Detail

TestCaseWatchdog

public TestCaseWatchdog(long delay,
                        edu.emory.mathcs.backport.java.util.concurrent.TimeUnit unit,
                        TestCaseWatchdogTimeoutHandler timeoutHandler)
Method Detail

run

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

cancel

public void cancel()

isTimedOut

public boolean isTimedOut()


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