ie.deri.wsmx.manager.listeners
Class EventListener

java.lang.Object
  extended byjava.lang.Thread
      extended byie.deri.wsmx.manager.listeners.EventListener
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
InvokerListener, MatchmakerListener, OOMediatorListener, ParserListener, SelectorListener

public abstract class EventListener
extends java.lang.Thread


Field Summary
protected  SystemComponent component
           
protected  Event event
           
protected  EventDB eventHandler
           
protected  java.util.ArrayList eventsList
           
protected  boolean runListener
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
EventListener(SystemComponent component)
           
 
Method Summary
 void handleNewEvent(Event event)
           
 void run()
           
abstract  void runListener()
           
 void setSleepTime(int milliseconds)
           
protected  void sleep()
           
 void stopListener()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

event

protected Event event

eventHandler

protected EventDB eventHandler

runListener

protected boolean runListener

eventsList

protected java.util.ArrayList eventsList

component

protected SystemComponent component
Constructor Detail

EventListener

public EventListener(SystemComponent component)
Method Detail

runListener

public abstract void runListener()
                          throws ListenerException
Throws:
ListenerException

handleNewEvent

public void handleNewEvent(Event event)

stopListener

public void stopListener()

setSleepTime

public void setSleepTime(int milliseconds)

run

public void run()

sleep

protected void sleep()