1 / 6

Get Set Poll

GET SET. MonitorON-OFF. LISTENERS. Device Server. Subscription Manager. Server Framework. Subscriptions. Polling Engine. Forwarding Engine. Get Set Poll. Any Polling Mechanism. MonitorOn Active Device Subscriber. Active Device Listener. Adapter.

latham
Download Presentation

Get Set Poll

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GET SET MonitorON-OFF LISTENERS Device Server Subscription Manager Server Framework Subscriptions Polling Engine Forwarding Engine Get Set Poll Any Polling Mechanism MonitorOn Active Device Subscriber Active Device Listener Adapter

  2. Polling Engine & Interfaces(Passive Device) SERVER API • Polling Engine & Interfaces • Poller getPoller (IOPoint iop) • void run() • void stop() • Boolean isRunning() • Polling Interface • void poll(IOPoint iop, Data value, ValueQualifier vq) • ValueQualifer signals that the value changed, unchanged, or ask to use the default comparison algorithm

  3. Server Framework Poll Method(Passive Device Only - DRAFT) SERVER API • poll() • It is called by the Poller upon reception of an event • It walks through the his subscription list and, for each entry, it executes the implementation of the poll(IOPoint iop, Data value,…)interface • It then validates and pushes the operation results to the listeners • We will provide some common polling engine implementations: • e.g. Periodic poller, PLS poller, SL timing poller

  4. MonitorOn / Off Interfaces & Push Method(Active Devices Only) SERVER API • Device Adapter (Subscriber) • monitorOn(IOPoint iop) • It executes the device specific subscription & activates the listener • monitorOff(IOPoint iop) • It executes the device specific unsubscribe • Active Device Listener (Publisher) • push(IOPoint iop, Data value, ValueQualifier vq)

  5. Passive Adapter API Methods written by the user • get(IOPoint* iop, Data* value, Data* ctxt) • set(IOPoint* iop, Data* value, Data* ctxt) • poller* getPoller(IOPoint* iop = 0) • void poll(IOPoint* iop, Data* value, ValueQualifier* qualifier) • Poller methods run(), stop(), isRunning()

  6. Active Adapter API Methods written by the user • monitorOn(IOPoint* iop) • monitorOff(IOPoint* iop) • get(IOPoint* iop, Data* value, Data* ctxt) • set(IOPoint* iop, Data* value, Data* ctxt) Called by user to push • void push(IOPoint* iop, Data* value, ValueQualifier* qualifier, cmwDeviceServer*srv_ptr = 0)

More Related