|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.basher.impl.SchedulerImpl
public class SchedulerImpl
Implementation of the Scheduler
interface.
Constructor Summary | |
---|---|
SchedulerImpl()
|
Method Summary | |
---|---|
void |
addThread()
Adds a thread to the currently running scheduler. |
void |
addThreads(int numToAdd)
Adds the specified number of threads to the currently running scheduler. |
void |
basherEvent(BasherEvent basherEvent)
|
Phase |
getCurrentPhase()
Removes a thread from the currently running scheduler |
int |
getNumberOfActiveThreads()
Retrieves the number of threads currently active in the scheduler. |
boolean |
isRunning()
Checks whether or not the scheduler is running. |
void |
removeAllThreads()
Removes all threads from the currently running scheduler |
void |
removeThread()
Removes a thread from the currently running scheduler |
void |
setContextManager(ContextManager contextManager)
Sets the context manager instance to use |
void |
setEventManager(EventManager eventManager)
Sets the event manager to use |
void |
setLog(org.apache.commons.logging.Log logger)
Sets the logging instance to use |
void |
setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
|
void |
setTaskRunner(TaskRunner taskRunner)
Sets the task runner to use |
void |
setThreadIncrementTask(ThreadIncrementTask threadIncrementTask)
|
void |
setTickTimerTask(TickTimerTask tickTimerTask)
|
void |
start()
Starts the scheduler. |
void |
start(BasherContext basherContext)
|
void |
start(String contextName)
|
void |
stop()
Stops the scheduler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulerImpl()
Method Detail |
---|
public void addThread()
addThread
in interface Scheduler
public void addThreads(int numToAdd)
addThreads
in interface Scheduler
numToAdd
- The number of threads to addpublic void removeThread()
removeThread
in interface Scheduler
public void removeAllThreads()
removeAllThreads
in interface Scheduler
public void stop()
stop
in interface Scheduler
public void start()
start
in interface Scheduler
public void start(String contextName)
start
in interface Scheduler
public void start(BasherContext basherContext)
start
in interface Scheduler
public int getNumberOfActiveThreads()
getNumberOfActiveThreads
in interface Scheduler
public boolean isRunning()
isRunning
in interface Scheduler
public Phase getCurrentPhase()
Scheduler
getCurrentPhase
in interface Scheduler
public void setLog(org.apache.commons.logging.Log logger)
logger
- The logging instance to usepublic void setContextManager(ContextManager contextManager)
contextManager
- The context manager instance to usepublic void setEventManager(EventManager eventManager)
eventManager
- The event manager instance to usepublic void setTaskRunner(TaskRunner taskRunner)
taskRunner
- The task runner instance to usepublic void setTickTimerTask(TickTimerTask tickTimerTask)
public void setThreadIncrementTask(ThreadIncrementTask threadIncrementTask)
public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
public void basherEvent(BasherEvent basherEvent)
basherEvent
in interface BasherEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |