edu.uci.isr.yancees.server.plugin.notification.pull
Class PullPlugin
java.lang.Object
edu.uci.isr.yancees.plugin.AbstractPlugin
edu.uci.isr.yancees.server.plugin.notification.pull.PullPlugin
- All Implemented Interfaces:
- PluginInterface, PluginListenerInterface
- public class PullPlugin
- extends AbstractPlugin
Constructor Summary |
PullPlugin(org.w3c.dom.Node subTree)
|
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 |
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.
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 receivedsource
- 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 receivedsource
- 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.