| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.berkeley.psi.seda.GenericServiceDispatcher
public class GenericServiceDispatcher
Implements a dispatcher for a generic SandStorm server. This agent can be used as the SinkIF compQ when creating an ATcpServerSocket. It will then receive an ATcpConnection for each new client connection.
| Constructor Summary | |
|---|---|
| GenericServiceDispatcher() | |
| Method Summary | |
|---|---|
|  void | destroy()Called when an event handler is destroyed. | 
|  void | handleEvent(QueueElementIF elem)Handle the event corresponding to the given QueueElementIF. | 
|  void | handleEvents(QueueElementIF[] elemarr)Handle the events corresponding to the given QueueElementIF array. | 
|  void | init(ConfigDataIF config)Called when an event handler is initialized. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GenericServiceDispatcher()
| Method Detail | 
|---|
public void handleEvent(QueueElementIF elem)
                 throws EventHandlerException
EventHandlerException - The application may throw an
   exception to indicate an error condition during event processing.public void handleEvents(QueueElementIF[] elemarr)
                  throws EventHandlerException
EventHandlerException - The application may throw an
   exception to indicate an error condition during event processing.public void init(ConfigDataIF config)
          throws java.lang.Exception
config - The set of configuration parameters for the stage.
java.lang.Exception - The EventHandler can indicate an
 error to the runtime during initialization by throwing an 
 Exception.public void destroy()
             throws java.lang.Exception
java.lang.Exception - The EventHandler can indicate an
 error to the runtime during shutdown by throwing an 
 Exception.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||