| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.bluesock.bluemud.driver.Engine
The Engine class is responsible for processing mud events. Events can be added to the engine's queue of pending events, which will ultimately be processed in a first-come, first-served order (FIFO). The engine runs until asked to shutdown.
| Fields inherited from class java.lang.Thread | 
| inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals | 
| Constructor Summary | |
| protected  | Engine()Constructor | 
| Method Summary | |
|  void | addEvent(MudEvent newEvent)Request that an event be added to the pending list of events that are to be processed by the engine. | 
| (package private)  long | getAverageEventExecutionTime()Retrieve the average time it takes to execute an event. | 
| (package private)  long | getAverageQueueSize()Retrieve the average size of the event queue. | 
| (package private)  int | getCurrentQueueSize()Retrieve the current size of the event queue. | 
| (package private)  long | getTotalNumberEventsProcessed()Retrieve the total number of events processed by this Engine instance. | 
| (package private)  long | getTotalNumberEventsTerminated()Retrieve the total number of events terminated by this Engine instance due to the event taking longer than the established timeout to execute. | 
|  void | run()Processes pending events. | 
|  void | shutdown()Request that the engine shutdown. | 
| Methods inherited from class java.lang.Thread | 
|  | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
protected Engine()
| Method Detail | 
public void addEvent(MudEvent newEvent)
int getCurrentQueueSize()
long getAverageQueueSize()
long getAverageEventExecutionTime()
long getTotalNumberEventsProcessed()
long getTotalNumberEventsTerminated()
public void shutdown()
public void run()
run in class java.lang.Thread| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||