com.atlassian.bamboo.container
Class BambooThreadedExecutor

java.lang.Object
  extended by com.atlassian.bamboo.container.BambooThreadedExecutor

public class BambooThreadedExecutor
extends Object

An implementation of Executor that creates a new thread that invokes the run method of the supplied command.

Extended to be able to stop the thread, so we can stop big builds...


Constructor Summary
BambooThreadedExecutor(String threadName)
           
 
Method Summary
 void execute(Runnable command)
          Execute the given command in a new thread.
 void stop()
          Stop the command being run in the thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooThreadedExecutor

public BambooThreadedExecutor(String threadName)
Method Detail

execute

public void execute(Runnable command)
Execute the given command in a new thread.

Parameters:
command - The command to execute
Throws:
InterruptedException - The execution thread has been interrupted

stop

public void stop()
Stop the command being run in the thread. Based on technique from Sun's web site.



Copyright © 2006 Atlassian Software Systems. All Rights Reserved.