edu.uci.isr.yancees.plugin
Class AbstractMOOrderedPlugin

java.lang.Object
  extended byedu.uci.isr.yancees.plugin.AbstractMOPlugin
      extended byedu.uci.isr.yancees.plugin.AbstractMOOrderedPlugin
All Implemented Interfaces:
MOPluginInterface, MOPluginListenerInterface, PluginInterface

public abstract class AbstractMOOrderedPlugin
extends AbstractMOPlugin

This plug-in performs event ordering. For such, it uses the time the event arrived in the server. The strategy used to sort the events is to age them for a period of time in a buffer, where they are inserted in order, before publishing them. Hence, this approach adds a delay to the system and is only supposed to be used by applications such as event correlation, which deals with a subset of all the events of the system.


Field Summary
 
Fields inherited from class edu.uci.isr.yancees.plugin.AbstractMOPlugin
myListeners, myRequiredPlugins
 
Constructor Summary
AbstractMOOrderedPlugin(org.w3c.dom.Node subTree)
           
 
Method Summary
abstract  void receiveOrderedPluginNotification(GenericEvent evt, MOPluginInterface source)
          This method allows the subclass to receive ordered events The events are ordered according to the time they arrive in the server Repeated events, with same Id, are also discarded, ma here.
 void receivePluginNotification(GenericEvent[] evtList, MOPluginInterface source)
          This mehod now bufferizes the event pattern received, rearranging it according to the order they are published in the notification server, removing repetitions.
 void receivePluginNotification(GenericEvent evt, MOPluginInterface source)
          This mehod now bufferizes the events received, rearranging them according to the order they are published in the notification server, removing repetitions.
 
Methods inherited from class edu.uci.isr.yancees.plugin.AbstractMOPlugin
addListener, addRequiredPlugin, dispose, finalize, getExpectedPluginIDs, getFullContext, getFullPath, getId, getRequiredPluginsList, getSubtree, getTag, hasChildren, publishOutput, publishOutput, receivePluginNotification, receivePluginNotification, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMOOrderedPlugin

public AbstractMOOrderedPlugin(org.w3c.dom.Node subTree)
Parameters:
subTree - is a reference to the DOM tree representing the tag which originated this plug-in.
Method Detail

receivePluginNotification

public void receivePluginNotification(GenericEvent evt,
                                      MOPluginInterface source)
This mehod now bufferizes the events received, rearranging them according to the order they are published in the notification server, removing repetitions.

See Also:
yancees.server.plugins.MOPluginListenerInterface#receivePluginNotification(yancees.core.Event, yancees.server.plugins.PluginInterface)

receivePluginNotification

public void receivePluginNotification(GenericEvent[] evtList,
                                      MOPluginInterface source)
This mehod now bufferizes the event pattern received, rearranging it according to the order they are published in the notification server, removing repetitions.

See Also:
yancees.server.plugins.MOPluginListenerInterface#receivePluginNotification(yancees.core.Event[], yancees.server.plugins.PluginInterface)

receiveOrderedPluginNotification

public abstract void receiveOrderedPluginNotification(GenericEvent evt,
                                                      MOPluginInterface source)
This method allows the subclass to receive ordered events The events are ordered according to the time they arrive in the server Repeated events, with same Id, are also discarded, ma here.

Parameters:
evt - is the event in the order of arrival in the server, without repetition
source - is the plug-in that originated the event.