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

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

public class PullPlugin
extends AbstractPlugin


Field Summary
 
Fields inherited from class edu.uci.isr.yancees.plugin.AbstractPlugin
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, PluginInterface source)
          Receives a list of events as notifications from another plug-in
 void receivePluginNotification(EventInterface evt, PluginInterface 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.AbstractPlugin
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
 

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,
                                      PluginInterface source)
Receives a notification from another plug-in

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

receivePluginNotification

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

Specified by:
receivePluginNotification in interface PluginListenerInterface
Specified by:
receivePluginNotification in class AbstractPlugin
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.