|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread i3.dragos.core.TaskScheduler
public final class TaskScheduler
The TaskScheduler
executes all registered tasks on a regular
basis.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TaskScheduler()
Consttructs the task scheduler. |
Method Summary | |
---|---|
void |
addTask(Task task)
Adds the specified task to the scheduler. |
static TaskScheduler |
getInstance()
Returns the task scheduler registered to the module manager. |
java.lang.String |
getRole()
Returns the kernel module's role. |
void |
initialize()
Initializes the kernel module. |
void |
removeTask(Task task)
Removes the specified task from the scheduler. |
void |
run()
Schedules the execution of the tasks. |
void |
uninitialize()
Uninitializes the kernel module and releases all resources used by it. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TaskScheduler()
Method Detail |
---|
public static TaskScheduler getInstance()
public java.lang.String getRole()
getRole
in interface KernelModule
public void initialize()
initialize
in interface KernelModule
public void uninitialize()
uninitialize
in interface KernelModule
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void addTask(Task task)
task
- The task that is added.public void removeTask(Task task)
task
- The task that is removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |