|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mdw.sandStorm.lib.aSocket.aSocketEventHandler | +--mdw.sandStorm.lib.aSocket.WriteEventHandler
Internal event handler used to handle socket write events.
Fields inherited from class mdw.sandStorm.lib.aSocket.aSocketEventHandler |
eventQ, selsource |
Fields inherited from interface mdw.sandStorm.lib.aSocket.aSocketConst |
EVENT_QUEUE_SPIN, EVENT_QUEUE_TIMEOUT, LARGE_AGGREGATION, LISTENSTAGE_NAME, MAX_ACCEPTS_AT_ONCE, MAX_WRITE_LEN, MAX_WRITE_REQS_PER_SOCKET, MAX_WRITES_AT_ONCE, MEASUREMENT_SIZE, READ_BUFFER_COPY, READ_BUFFER_SIZE, READSTAGE_NAME, SELECT_SPIN, SELECT_TIMEOUT, TRYWRITE_SPIN, WRITE_MASK_DISABLE_THRESHOLD, WRITESTAGE_NAME |
Constructor Summary | |
(package private) |
WriteEventHandler()
|
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. |
Methods inherited from class mdw.sandStorm.lib.aSocket.aSocketEventHandler |
getSelectSource |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
WriteEventHandler()
Method Detail |
public void init(ConfigDataIF config)
EventHandlerIF
init
in interface EventHandlerIF
init
in class aSocketEventHandler
mdw.sandStorm.api.EventHandlerIF
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()
EventHandlerIF
destroy
in interface EventHandlerIF
destroy
in class aSocketEventHandler
mdw.sandStorm.api.EventHandlerIF
java.lang.Exception
- The EventHandler can indicate an
error to the runtime during shutdown by throwing an
Exception.public void handleEvent(QueueElementIF qel)
EventHandlerIF
handleEvent
in interface EventHandlerIF
handleEvent
in class aSocketEventHandler
mdw.sandStorm.api.EventHandlerIF
EventHandlerException
- The application may throw an
exception to indicate an error condition during event processing.public void handleEvents(QueueElementIF[] qelarr)
EventHandlerIF
handleEvents
in interface EventHandlerIF
handleEvents
in class aSocketEventHandler
mdw.sandStorm.api.EventHandlerIF
EventHandlerException
- The application may throw an
exception to indicate an error condition during event processing.
|
More information: http://www.cs.berkeley.edu/~mdw/proj/seda/ | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |