com.atlassian.bamboo.builder
Class BuildTimeoutKiller

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

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
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildTimeoutKiller

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

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

onTimeout

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.