seda.sandStorm.lib.aSocket
Class ListenEventHandler

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.aSocketEventHandler
      extended by seda.sandStorm.lib.aSocket.ListenEventHandler
All Implemented Interfaces:
EventHandlerIF

 class ListenEventHandler
extends aSocketEventHandler
implements EventHandlerIF

Internal event handler for socket listen events.


Field Summary
private static boolean DEBUG
           
 
Fields inherited from class seda.sandStorm.lib.aSocket.aSocketEventHandler
eventQ, selsource
 
Constructor Summary
ListenEventHandler()
           
 
Method Summary
 void destroy()
          Called when an event handler is destroyed.
 void handleEvent(QueueElementIF qel)
          Handle the event corresponding to the given QueueElementIF.
 void handleEvents(QueueElementIF[] qelarr)
          Handle the events corresponding to the given QueueElementIF array.
 void init(ConfigDataIF config)
          Called when an event handler is initialized.
private  void processAccept(ListenSockState lss)
           
private  void processListenRequest(aSocketRequest req)
           
 
Methods inherited from class seda.sandStorm.lib.aSocket.aSocketEventHandler
getSelectSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

ListenEventHandler

ListenEventHandler()
Method Detail

init

public void init(ConfigDataIF config)
Description copied from interface: EventHandlerIF
Called when an event handler is initialized. This method should perform any initialization operations as required by the application.

Specified by:
init in interface EventHandlerIF
Specified by:
init in class aSocketEventHandler
Parameters:
config - The set of configuration parameters for the stage.

destroy

public void destroy()
Description copied from interface: EventHandlerIF
Called when an event handler is destroyed. This method should perform any cleanup or shutdown operations as required by the application before the event handler is removed from the system.

Specified by:
destroy in interface EventHandlerIF
Specified by:
destroy in class aSocketEventHandler

processAccept

private void processAccept(ListenSockState lss)
                    throws java.io.IOException
Throws:
java.io.IOException

processListenRequest

private void processListenRequest(aSocketRequest req)
                           throws java.io.IOException
Throws:
java.io.IOException

handleEvent

public void handleEvent(QueueElementIF qel)
Description copied from interface: EventHandlerIF
Handle the event corresponding to the given QueueElementIF. This method is invoked by the system when a single event is pending for the event handler.

Specified by:
handleEvent in interface EventHandlerIF
Specified by:
handleEvent in class aSocketEventHandler

handleEvents

public void handleEvents(QueueElementIF[] qelarr)
Description copied from interface: EventHandlerIF
Handle the events corresponding to the given QueueElementIF array. This method is invoked when multiple events are pending for the event handler. The application may reorder, filter, or drop these events if it wishes to do so.

Specified by:
handleEvents in interface EventHandlerIF
Specified by:
handleEvents in class aSocketEventHandler