|
||||||||||
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 threadMethod Detail |
---|
public void start() throws Exception
start
in interface Startable
Exception
- a generic errorpublic void stop() throws Exception
stop
in interface Startable
Exception
- a generic failurepublic void killActiveTask() throws Exception
killActiveTask
in interface TaskDaemon
Exception
- A generic exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |