1 / 12

ACS Training

ACS Training. Notification Channel - Java API. Getting Started. At the console open up: ACS/LGPL/CommonSoftware/acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountSupplier.java ACS/LGPL/CommonSoftware/acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountConsumer.java. What files needs to be created?.

gass
Download Presentation

ACS Training

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. ACS Training Notification Channel - Java API

  2. Getting Started At the console open up: ACS/LGPL/CommonSoftware/acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountSupplier.java ACS/LGPL/CommonSoftware/acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountConsumer.java ACS Training

  3. What files needs to be created? • An IDL file containing the definition of a struct the NC will send/receive. • An instance of the supplier or consumer objects (or a derived class…) ACS Training

  4. What is Gained By Using Java • A complete implementation of the ACS API. • An extremely powerful Supplier class when compared to C++. • It’s harder to write buggy code (i.e., segfaults relating to the C++ API occur often). • Simulations outside of CORBA using the Publisher/Receiver classes. Please see the notification channel document for specific details. ACS Training

  5. Supplier Example Please see: acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountSupplier.java ACS Training

  6. Consumer Example Please see: acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountConsumer.java Also, please open: jcontexmpl/src/alma/demo/EventConsumerImpl/EventConsumerImpl ACS Training

  7. Makefile Targets There is nothing special that has to be used for the Java NC API. Simply compile the Java files using the “normal” Java targets. ACS Training

  8. What Methods are Available in the Consumer and Supplier Classes? Exactly the same methods discussed in the Python Notification Channel presentation. For specific details, take a look at automatically generated documentation available at: www.eso.org/~almamgr/AlmaAcs/OnlineDocs/ACS_docs/java/namespacealma_1_1acs_1_1nc.html ACS Training

  9. Questions about the Java NC API??? ACS Training

  10. Demo ACS Training

  11. Advanced Concepts:Adding Suppliers/Consumers to your Component ACS Training

More Related