All tasks must implement the Task interface.
All task requests (startup, shutdown, disable) are handled by the TaskManager.
The TaskManager runs each Task under a TaskThread. This is
analogous to the standard Java Thread -> Runnable mechanism. The
main difference is that we keep everything within one threadgroup
and we can also shutdown a task if necessary.
|