|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
Defines operations for interacting with the scheduler service. Users of the scheduler can stop and start the scheduler, add and remove threads and retrieve statistics about currently running threads.
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. |
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 |
start()
Starts the scheduler. |
void |
start(BasherContext basherContext)
|
void |
start(String contextName)
|
void |
stop()
Stops the scheduler. |
Method Detail |
---|
void addThread()
void addThreads(int numToAdd)
numToAdd
- The number of threads to addvoid removeThread()
void removeAllThreads()
void stop()
void start()
void start(String contextName)
contextName
- void start(BasherContext basherContext)
basherContext
- int getNumberOfActiveThreads()
boolean isRunning()
Phase getCurrentPhase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |