| |
|
| java.lang.Object java.lang.Thread javax.management.timer.Scheduler
Scheduler | public class Scheduler extends Thread (Code) | | A scheduler for running tasks in a Java VM.
This class can be used to schedule a particular task at a
specified time. This is basically to control effectively a number of tasks
using a limited number of threads
|
MAX_THREADS | int MAX_THREADS(Code) | | The maximum numer of threads to be used in executing tasks for this
scheduler
|
NUM_THREADS_STOPPED | int NUM_THREADS_STOPPED(Code) | | |
STOP_ALL | static boolean STOP_ALL(Code) | | |
STOP_THIS | boolean STOP_THIS(Code) | | |
STOP_TIME_OUT | static int STOP_TIME_OUT(Code) | | |
TOTAL_THREADS | static int TOTAL_THREADS(Code) | | |
cleanUp | public boolean cleanUp()(Code) | | |
deregisterThisScheduler | public void deregisterThisScheduler(String nam)(Code) | | |
getDefaultMaxThreads | public static int getDefaultMaxThreads()(Code) | | |
getMaxThreads | public int getMaxThreads()(Code) | | |
getNextTask | synchronized Runnable getNextTask()(Code) | | get the next task ready to run *
|
getTheWork | synchronized Runnable getTheWork()(Code) | | something to let this thread rest when nothing to do *
|
getTotalThreads | public static int getTotalThreads()(Code) | | |
killScheduler | public void killScheduler()(Code) | | |
removeTask | public synchronized void removeTask(Runnable task)(Code) | | This methood is used to remove a task from being scheduled.
|
resumeAll | public boolean resumeAll()(Code) | | |
run | public void run()(Code) | | The main thread which kicks off the task execution *
|
scheduleTask | public synchronized void scheduleTask(Runnable task, Date when)(Code) | | This methood schedules a one-time task at the specified time
|
setDefaultMaxThreads | public static void setDefaultMaxThreads(int i)(Code) | | |
setMaxThreads | public boolean setMaxThreads(int i)(Code) | | |
setStopTimeout | public void setStopTimeout(int timeout)(Code) | | |
startTask | synchronized void startTask(Runnable task)(Code) | | start the task *
|
startWorkers | synchronized void startWorkers()(Code) | | start the workers*
|
stopAll | public static boolean stopAll()(Code) | | |
stopThis | public boolean stopThis()(Code) | | |
|
|
|