1 / 5

Tango Java Events

Tango Java Events. Used omniNotify idl files : AttNotifyChannelAdmin.idl CosNotification.idl CosNotifyChannelAdmin.idl CosNotifyFilter.idl CosTime.idl CosTimerEvent.idl RDITestTypes.idl JacORB provides a java implementation of the CORBA Event Service

Download Presentation

Tango Java Events

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. Tango Java Events

  2. Used omniNotify idl files : • AttNotifyChannelAdmin.idl • CosNotification.idl • CosNotifyChannelAdmin.idl • CosNotifyFilter.idl • CosTime.idl • CosTimerEvent.idl • RDITestTypes.idl • JacORB provides a java implementation of the CORBA Event Service •  No need of the omniNotify idl files : • CosEventComm.idl • CosEventChannelAdmin.idl

  3. Compiling idl files : • Jacorb idl compiler issued only some warnings concerning omniORB specific pragmas • Used to insert extra includes into the omniorb stub header • (example : #pragma hh #include <COS_sysdep.h>) •  Does not impact Java Code • Generating java packages (under tango-cs/api/java directory) : • org.omg.AttNotifyChannelAdmin • org.omg.CosNotification • org.omg.CosNotifyChannelAdmin • org.omg.CosNotifyFilter • org.omg.CosTime • org.omg.CosTimerEvent • org.omg.RDITestTypes

  4. Porting event.cpp to Java  TangoApi package modifications : Added classes DbEventImportInfo EventCallback EventCallbackStruct EventChannelStruct EventConsumer EventData Added Database method DbEventImportInfo import_event(String channel_name) Added ApiUtil methods static void create_event_consumer() static void get_event_consumer()

  5. Java Event Client API • - KeepAliveThread not yet implemented • - Added DeviceProxy method • void subscribe_event(String att,String event,EventCallback cb) • Tested with Andy TANGO (C++) server generating events •  OK

More Related