|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wiley.posa3.partialacquisition.Scheduler
The Scheduler runs in the active object's thread of control. The requests that aret inserted into the Scheduler's message queue will fetch the network element's components when triggered by the Scheduler.
| Constructor Summary | |
Scheduler(int numThreads,
ThreadManager tm)
Constructor. |
|
| Method Summary | |
void |
insert(Request request)
Insert a request into the message queue of the scheduler. |
void |
run()
Method that is called when an instance of the Thread object is created and is passed an MQScheduler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Scheduler(int numThreads,
ThreadManager tm)
numThreads - the number of threas to spawn.tm - an instance of a ThreadManager that is responsible for
managing all the threads.| Method Detail |
public void insert(Request request)
request - the request to schedule.public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||