com.atlassian.bamboo.container
Class BambooThreadedExecutor
java.lang.Object
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...
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 |
BambooThreadedExecutor
public BambooThreadedExecutor(String threadName)
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.