|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.container.ThreadedTaskDaemon
public class ThreadedTaskDaemon
This class executes a given task in a single thread.
| Constructor Summary | |
|---|---|
ThreadedTaskDaemon(BambooTask task,
String threadName)
Create a deamon to run the given task in a separate thread |
|
| Method Summary | |
|---|---|
void |
killActiveTask()
Stop the currently active task and restart the process in a new thread. |
void |
start()
Start the deamon running |
void |
stop()
Stop the task from executing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedTaskDaemon(BambooTask task,
String threadName)
task - The task to execute in the thread| Method Detail |
|---|
public void start()
throws Exception
start in interface StartableException - a generic error
public void stop()
throws Exception
stop in interface StartableException - a generic failure
public void killActiveTask()
throws Exception
killActiveTask in interface TaskDaemonException - A generic exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||