21 package org.opensplice.dds.core;
39 import DDS.DataReaderQosHolder;
40 import DDS.DataWriterQosHolder;
41 import DDS.PublisherQosHolder;
42 import DDS.SubscriberQosHolder;
46 private DDS.QosProvider old;
53 this.environment = environment;
55 this.old =
new DDS.QosProvider(uri, profile);
56 }
catch (NullPointerException npe) {
63 return this.environment;
74 "QosProvider.getDomainParticipantFactoryQos() not supported.");
84 DDS.DomainParticipantQosHolder holder =
new DDS.DomainParticipantQosHolder();
85 int rc = old.get_participant_qos(holder,
id);
87 "QosProvider.getDomainParticipantQos() failed.");
88 if (rc == DDS.RETCODE_NO_DATA.value) {
101 DDS.TopicQosHolder holder =
new DDS.TopicQosHolder();
102 int rc = old.get_topic_qos(holder,
id);
104 "QosProvider.getTopicQos() failed.");
105 if (rc == DDS.RETCODE_NO_DATA.value) {
118 SubscriberQosHolder holder =
new SubscriberQosHolder();
119 int rc = this.old.get_subscriber_qos(holder,
id);
121 "QosProvider.getSubscriberQos() failed.");
122 if (rc == DDS.RETCODE_NO_DATA.value) {
135 PublisherQosHolder holder =
new PublisherQosHolder();
136 int rc = this.old.get_publisher_qos(holder,
id);
138 "QosProvider.getPublisherQos() failed.");
139 if (rc == DDS.RETCODE_NO_DATA.value) {
152 DataReaderQosHolder holder =
new DataReaderQosHolder();
153 int rc = this.old.get_datareader_qos(holder,
id);
155 "QosProvider.getDataReaderQos() failed.");
156 if (rc == DDS.RETCODE_NO_DATA.value) {
169 DataWriterQosHolder holder =
new DataWriterQosHolder();
170 int rc = this.old.get_datawriter_qos(holder,
id);
172 "QosProvider.getDataWriterQos() failed.");
173 if (rc == DDS.RETCODE_NO_DATA.value) {
static PublisherQosImpl convert(OsplServiceEnvironment env, DDS.PublisherQos oldQos)
DomainParticipantFactoryQos getDomainParticipantFactoryQos(String id)
DomainParticipantQos getDomainParticipantQos()
static SubscriberQosImpl convert(OsplServiceEnvironment env, DDS.SubscriberQos oldQos)
DataWriterQos getDataWriterQos()
PublisherQos getPublisherQos(String id)
ServiceEnvironment getEnvironment()
DataWriterQos getDataWriterQos(String id)
static TopicQosImpl convert(OsplServiceEnvironment env, DDS.TopicQos oldQos)
DataReaderQos getDataReaderQos(String id)
static DomainParticipantQosImpl convert(OsplServiceEnvironment env, DDS.DomainParticipantQos oldQos)
TopicQos getTopicQos(String id)
static DataWriterQosImpl convert(OsplServiceEnvironment env, DDS.DataWriterQos oldQos)
QosProviderImpl(OsplServiceEnvironment environment, String uri, String profile)
DomainParticipantQos getDomainParticipantQos(String id)
DDS.DataReaderQos convert()
static void checkReturnCode(int retCode, OsplServiceEnvironment environment, String message)
DataReaderQos getDataReaderQos()
The QoS provider API allows users to specify the QoS settings of their DCPS entities outside of appli...
DomainParticipantFactoryQos getDomainParticipantFactoryQos()
SubscriberQos getSubscriberQos()
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
static void throwLastErrorException(OsplServiceEnvironment environment)
PublisherQos getPublisherQos()
SubscriberQos getSubscriberQos(String id)