edu.uci.isr.yancees.server.plugin.notification.pull
Class PullPlugin

java.lang.Object
  extended byedu.uci.isr.yancees.plugin.AbstractMOPlugin
      extended byedu.uci.isr.yancees.server.plugin.notification.pull.PullPlugin
All Implemented Interfaces:
MOPluginInterface, MOPluginListenerInterface, PluginInterface

public class PullPlugin
extends AbstractMOPlugin


Field Summary
static java.lang.String PULL_TAG
           
 
Fields inherited from class edu.uci.isr.yancees.plugin.AbstractMOPlugin
myListeners, myRequiredPlugins
 
Constructor Summary
PullPlugin(org.w3c.dom.Node subTree)
           
 
Method Summary
 java.util.Vector poll()
          This method is supposed to be used by the poll protocol plug-in in order to collect the bufferized events
 void receivePluginNotification(EventInterface[] evtList, MOPluginInterface source)
          Receives a list of events as notifications from another plug-in
 void receivePluginNotification(EventInterface evt, MOPluginInterface source)
          Receives a notification from another plug-in
 void removeEventsOlderThan(java.util.Date date)
          Removes the events that are older than a specified time/date.
 
Methods inherited from class edu.uci.isr.yancees.plugin.AbstractMOPlugin
addListener, addRequiredPlugin, dispose, finalize, getExpectedPluginIDs, getFullContext, getFullPath, getId, getRequiredPluginsList, getSubtree, getTag, hasChildren, publishOutput, publishOutput, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PULL_TAG

public static final java.lang.String PULL_TAG
See Also:
Constant Field Values
Constructor Detail

PullPlugin

public PullPlugin(org.w3c.dom.Node subTree)
Parameters:
subTree - is the DOM tree this plugin is responsible for executing evalutation of this plugin is published.
Method Detail

receivePluginNotification

public void receivePluginNotification(EventInterface evt,
                                      MOPluginInterface source)
Receives a notification from another plug-in

Specified by:
receivePluginNotification in interface MOPluginListenerInterface
Specified by:
receivePluginNotification in class AbstractMOPlugin
Parameters:
evt - is the event received
source - is the plug-in sending the notification.

receivePluginNotification

public void receivePluginNotification(EventInterface[] evtList,
                                      MOPluginInterface source)
Receives a list of events as notifications from another plug-in

Specified by:
receivePluginNotification in interface MOPluginListenerInterface
Specified by:
receivePluginNotification in class AbstractMOPlugin
Parameters:
evtList - is the list of events received
source - is the plug-in sending the notification.

poll

public java.util.Vector poll()
This method is supposed to be used by the poll protocol plug-in in order to collect the bufferized events

Returns:
the currently stored events and empties the buffer.

removeEventsOlderThan

public void removeEventsOlderThan(java.util.Date date)
Removes the events that are older than a specified time/date.

Parameters:
date - the date before which all events in the buffer are erased.