| seda.sandStorm.api.EventHandlerIF
All known Subclasses: seda.sandStorm.lib.Gnutella.GnutellaServer, com.rimfaxe.webserver.seda.PageCacheSized, seda.apps.Haboob.hdapi.DynamicHttp, seda.apps.Haboob.cache.BufferCache, seda.sandStorm.lib.Gnutella.GnutellaCatcher, seda.apps.Haboob.bottleneck.BottleneckDirectControl, seda.sandStorm.lib.aDisk.AFileTPEventHandler, seda.apps.Haboob.bottleneck.Bottleneck, seda.sandStorm.lib.aSocket.ListenEventHandler, seda.apps.Haboob.cache.PageCacheSized, com.rimfaxe.webserver.seda.DynamicHttp, seda.sandStorm.lib.http.httpServer, seda.sandStorm.lib.aSocket.ReadEventHandler, seda.apps.Haboob.http.HttpSend, seda.sandStorm.lib.aSocket.WriteEventHandler, seda.sandStorm.lib.aSocket.aSocketEventHandler, seda.apps.Haboob.cache.AFileRead, seda.apps.Haboob.cache.PageCache, seda.apps.Haboob.http.HttpRecv, seda.apps.Haboob.cache.StaticPage,
EventHandlerIF | public interface EventHandlerIF (Code) | | An EventHandlerIF represents an event handler - the basic unit of
computation in SandStorm. This is the basic interface which all
application modules implement.
author: Matt Welsh |
Method Summary | |
public void | destroy() Called when an event handler is destroyed. | public void | handleEvent(QueueElementIF elem) Handle the event corresponding to the given QueueElementIF. | public void | handleEvents(QueueElementIF elemarr) Handle the events corresponding to the given QueueElementIF array.
This method is invoked when multiple events are pending for the
event handler. | public void | init(ConfigDataIF config) Called when an event handler is initialized. |
destroy | public void destroy() throws Exception(Code) | | 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.
exception: Exception - The EventHandler can indicate anerror to the runtime during shutdown by throwing an Exception. |
handleEvent | public void handleEvent(QueueElementIF elem) throws EventHandlerException(Code) | | 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.
exception: EventHandlerException - The application may throw anexception to indicate an error condition during event processing. |
handleEvents | public void handleEvents(QueueElementIF elemarr) throws EventHandlerException(Code) | | 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.
exception: EventHandlerException - The application may throw anexception to indicate an error condition during event processing. |
init | public void init(ConfigDataIF config) throws Exception(Code) | | Called when an event handler is initialized. This method should
perform any initialization operations as required by the application.
Parameters: config - The set of configuration parameters for the stage. exception: Exception - The EventHandler can indicate anerror to the runtime during initialization by throwing an Exception. |
|
|