com.uwyn.rife.scheduler
Class Scheduler

java.lang.Object
  extended by java.lang.Thread
      extended by com.uwyn.rife.scheduler.Scheduler
All Implemented Interfaces:
Runnable

public class Scheduler
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Scheduler(TaskManager taskManager, TaskoptionManager taskoptionManager)
           
 
Method Summary
 boolean addExecutor(Executor executor)
           
 Executor getExecutor(String tasktype)
           
 Collection<Executor> getExecutors()
           
 TaskManager getTaskManager()
           
 TaskoptionManager getTaskoptionManager()
           
 boolean removeExecutor(Executor executor)
           
 void run()
           
 void setSleepTime(int sleeptime)
           
 void setTaskManager(TaskManager taskManager)
           
 void setTaskoptionManager(TaskoptionManager taskoptionManager)
           
 
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

Scheduler

public Scheduler(TaskManager taskManager,
                 TaskoptionManager taskoptionManager)
Method Detail

setTaskManager

public void setTaskManager(TaskManager taskManager)

getTaskManager

public TaskManager getTaskManager()

setTaskoptionManager

public void setTaskoptionManager(TaskoptionManager taskoptionManager)

getTaskoptionManager

public TaskoptionManager getTaskoptionManager()

addExecutor

public boolean addExecutor(Executor executor)
                    throws SchedulerException
Throws:
SchedulerException

removeExecutor

public boolean removeExecutor(Executor executor)

getExecutor

public Executor getExecutor(String tasktype)

getExecutors

public Collection<Executor> getExecutors()

setSleepTime

public void setSleepTime(int sleeptime)

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.