edu.uci.isr.yancees.plugin
Class AbstractOrderedPlugin
java.lang.Object
edu.uci.isr.yancees.plugin.AbstractPlugin
edu.uci.isr.yancees.plugin.AbstractOrderedPlugin
- All Implemented Interfaces:
- PluginInterface, PluginListenerInterface
- public abstract class AbstractOrderedPlugin
- extends AbstractPlugin
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.
Method Summary |
abstract void |
receiveOrderedPluginNotification(GenericEvent evt,
PluginInterface 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,
PluginInterface 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,
PluginInterface 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.AbstractPlugin |
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 |
AbstractOrderedPlugin
public AbstractOrderedPlugin(org.w3c.dom.Node subTree)
- Parameters:
subTree
- is a reference to the DOM tree representing the tag
which originated this plug-in.
receivePluginNotification
public void receivePluginNotification(GenericEvent evt,
PluginInterface 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.PluginListenerInterface#receivePluginNotification(yancees.core.Event, yancees.server.plugins.PluginInterface)
receivePluginNotification
public void receivePluginNotification(GenericEvent[] evtList,
PluginInterface 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.PluginListenerInterface#receivePluginNotification(yancees.core.Event[], yancees.server.plugins.PluginInterface)
receiveOrderedPluginNotification
public abstract void receiveOrderedPluginNotification(GenericEvent evt,
PluginInterface 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 repetitionsource
- is the plug-in that originated the event.