edu.uci.isr.yancees.server.plugin.protocol.polling
Class MOPollProtocolPlugin
java.lang.Object
edu.uci.isr.yancees.plugin.AbstractMOPlugin
edu.uci.isr.yancees.server.plugin.protocol.polling.MOPollProtocolPlugin
- All Implemented Interfaces:
- MOPluginInterface, MOPluginListenerInterface, PluginInterface
- public class MOPollProtocolPlugin
- extends AbstractMOPlugin
Nested Class Summary |
protected class |
MOPollProtocolPlugin.PollingMechanism
Implements a thread that periodically polls all the pull plug-ins under the
provides subscriber interface and publishes the output of this plug-in using
the events stored in the pull plug-ins. |
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 |
MOPollProtocolPlugin
public MOPollProtocolPlugin(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,
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 receivedsource
- 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 receivedsource
- is the plug-in sending the notification.
terminateSession
public void terminateSession()
- Gracefully terminates the current plugin as a result of the end of the
communicatoin session.
receiveProtocolMessage
public void receiveProtocolMessage(MessageInterface msg,
SubscriberInterface si)
throws PluginException
- Receive messages from this protocol
- Parameters:
msg
- is a message according to the protocol that the plug-in implements.si
- is the subscriber that originated the message.
- Throws:
PluginException