Download presentation
Presentation is loading. Please wait.
1
Notification Channel - Java API
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 SWC/LSO, October 2002 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…) SWC/LSO, October 2002 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. SWC/LSO, October 2002 ACS Training
5
Supplier Example Please see:
acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountSupplier.java SWC/LSO, October 2002 ACS Training
6
Consumer Example Please see:
acscourse/ws/src/alma/ACSCOURSE_MOUNT/MountConsumer.java Also, please open: jcontexmpl/src/alma/demo/EventConsumerImpl/EventConsumerImpl SWC/LSO, October 2002 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. SWC/LSO, October 2002 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: SWC/LSO, October 2002 ACS Training
9
Questions about the Java NC API???
SWC/LSO, October 2002 ACS Training
10
Demo SWC/LSO, October 2002 ACS Training
12
Advanced Concepts: Adding Suppliers/Consumers to your Component
SWC/LSO, October 2002 ACS Training
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.