Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java QosProvider examples #154

Open
BudDavis opened this issue Sep 25, 2020 · 1 comment
Open

java QosProvider examples #154

BudDavis opened this issue Sep 25, 2020 · 1 comment

Comments

@BudDavis
Copy link

i have found a "java5" example, but not "java". is there a sample somewhere?
(also, what is the reason / differences between "java" and "java5". as I have inherited a lot of code using the "java" interface.

thanks,
Bud Davis

@vivekpandey02
Copy link

Dear Bud,

Thank you for showing interest in Opensplice DDS.

Regarding your query about QosProvider API in Java; You can use it in the similar way as you use in Java 5.

You can take reference for how to use QoS API in plain java from below link:
https://github.com/ADLINK-IST/opensplice/blob/master/docs/qosprovider/java/code/QosProviderJava.java

Regarding your query about difference between Opensplice DDS Java and Java 5 APIs:

Java 5 Language PSM for DDS is the latest DDS DCPS API for the Java Language. It is more user friendly and simpler to use. The advantage of using Java5 APIs are below:

  1. Takes advantage of Java Generics to simplify the API and facilitate tasks such as type registration.

  2. Provides a DDS API that exploits Iterators and containers

  3. Uses exceptions rather than return codes.

  4. The Java 5 PSM restructures the DDS classes as a set of packages the maximize the coherence and minimize the dependencies across packages
    Domain Module – org.omg.dds.domain
    Topic Module - org.omg.dds.topic
    Publication Module - org.omg.dds.pub
    Subscription Module - org.omg.dds.sub
    Core/Common Module - org.omg.dds.core

  5. Better separation of include files can speed up compilation times of applications that are publish or subscribe based only.

  6. Factory pattern for all DDS Entities

  7. Other types (QoS Policies, WaitSet, StatusCondition, GuardCondition, QoSProvider and Duration) are initiated by means of new

  8. A ServiceEnvironment object represents an instantiation of a Service implementation within a JVM ...

Apart from the above many others features are available in Java5 which make it more user friendly.

With Best Regards,

Vivek K Pandey
Solutions Architect
ADLINK Technology

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants