Class BuildTimeoutKiller

  extended by java.lang.Thread
      extended by com.atlassian.bamboo.utils.Timer
          extended by com.atlassian.bamboo.builder.BuildTimeoutKiller
All Implemented Interfaces:

public class BuildTimeoutKiller
extends Timer

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
Field Summary
Fields inherited from class java.lang.Thread
Constructor Summary
BuildTimeoutKiller(java.lang.Thread targetThread, long timeoutInMilliseconds)
          Kill the targetThread if it is still running after timeoutInMilliseconds has elapsed.
Method Summary
 void onTimeout()
          This callback is triggered if the timer times-out
Methods inherited from class com.atlassian.bamboo.utils.Timer
cancel, restart, run, start
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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, stop, stop, suspend, toString, yield
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public BuildTimeoutKiller(java.lang.Thread targetThread,
                          long timeoutInMilliseconds)
Kill the targetThread if it is still running after timeoutInMilliseconds has elapsed.

targetThread - A thread to watch
timeoutInMilliseconds - The length of the timeout
Method Detail


public void onTimeout()
Description copied from class: Timer
This callback is triggered if the timer times-out

Specified by:
onTimeout in class Timer

Copyright © 2010 Atlassian. All Rights Reserved.