50 likes | 204 Views
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
E N D
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
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
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()
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