|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.run.TaskExecutors
public final class TaskExecutors
This class holds an inheritable thread local registry for all created task
executors. The Launcher
class uses this to make sure that
all task executors are properly stopped when its launch
method exits.
Scripts don't have to care about this.
Constructor Summary | |
---|---|
TaskExecutors()
|
Method Summary | |
---|---|
static TaskExecutors |
init()
This is called by Launcher to initialize this class. |
static void |
register(TaskExecutor te)
Register a task executor. |
static void |
shutDownAll(Report r)
|
static void |
tearDown(TaskExecutors prevTaskExecutors)
Tear down this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskExecutors()
Method Detail |
---|
public static TaskExecutors init()
Launcher
to initialize this class.
tearDown(TaskExecutors)
method by Launcher
.tearDown(TaskExecutors)
public static void tearDown(TaskExecutors prevTaskExecutors)
prevTaskExecutors
- The object returned by init()
.init()
public static void register(TaskExecutor te) throws IllegalStateException
te
- The task executor to register.
IllegalStateException
- If this object has not yet been
initialized by Launcher
.public static void shutDownAll(Report r) throws IllegalStateException, InterruptedException
IllegalStateException
InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |