21 package org.opensplice.dds.domain;
23 import java.io.Serializable;
46 import DDS.AllDataDisposedTopicStatusHolder;
47 import DDS.DataReader;
48 import DDS.DataWriter;
49 import DDS.InconsistentTopicStatus;
50 import DDS.LivelinessChangedStatus;
51 import DDS.LivelinessLostStatus;
52 import DDS.OfferedDeadlineMissedStatus;
53 import DDS.OfferedIncompatibleQosStatus;
54 import DDS.PublicationMatchedStatus;
55 import DDS.RequestedDeadlineMissedStatus;
56 import DDS.RequestedIncompatibleQosStatus;
57 import DDS.SampleLostStatus;
58 import DDS.SampleRejectedStatus;
59 import DDS.Subscriber;
60 import DDS.SubscriptionMatchedStatus;
64 Listener<DomainParticipantListener> implements
65 DDS.ExtDomainParticipantListener, Serializable {
66 private static final long serialVersionUID = -3531755144455417494L;
79 super(environment, listener, waitUntilInitialised);
80 this.participant = participant;
85 this.extListener = null;
92 InconsistentTopicStatus status) {
104 }
catch (ClassCastException e) {
110 OfferedDeadlineMissedStatus status) {
113 .lookupDataWriter(writer);
120 this.environment, status)));
126 OfferedIncompatibleQosStatus status) {
129 .lookupDataWriter(writer);
136 this.environment, status)));
142 LivelinessLostStatus status) {
144 .lookupDataWriter(writer);
150 this.environment, status)));
156 PublicationMatchedStatus status) {
158 .lookupDataWriter(writer);
165 this.environment, status)));
184 RequestedDeadlineMissedStatus status) {
186 .lookupDataReader(reader);
193 this.environment, status)));
199 RequestedIncompatibleQosStatus status) {
201 .lookupDataReader(reader);
208 this.environment, status)));
214 SampleRejectedStatus status) {
216 .lookupDataReader(reader);
222 this.environment, status)));
228 LivelinessChangedStatus status) {
230 .lookupDataReader(reader);
237 this.environment, status)));
244 .lookupDataReader(reader);
256 SubscriptionMatchedStatus status) {
258 .lookupDataReader(reader);
265 this.environment, status)));
272 .lookupDataReader(reader);
278 this.environment, status)));
285 AllDataDisposedTopicStatusHolder holder =
new AllDataDisposedTopicStatusHolder();
286 int rc = arg0.get_all_data_disposed_topic_status(holder);
288 if (rc != DDS.RETCODE_OK.value) {
293 topic = participant.getTopic(arg0);
295 if (this.extListener != null) {
298 if (holder.value != null) {
310 }
catch (ClassCastException e) {
A DataReader allows the application (1) to declare the data it wishes to receive (i.e., make a subscription) and (2) to access the data received by the attached org.omg.dds.sub.Subscriber.
A Subscriber is the object responsible for the actual reception of the data resulting from its subscr...
void on_liveliness_lost(DataWriter writer, LivelinessLostStatus status)
void on_sample_rejected(DataReader reader, SampleRejectedStatus status)
void on_data_available(DataReader reader)
Extension of org.omg.dds.domain.DomainParticipantListener to provide callback to notify AllDataDispos...
static QosPolicyCount [] convert(OsplServiceEnvironment env, DDS.QosPolicyCount[] old)
DataWriter allows the application to set the value of the data to be published under a given org...
DomainParticipantListenerImpl(OsplServiceEnvironment environment, DomainParticipantImpl participant, DomainParticipantListener listener)
OsplServiceEnvironment environment
void on_sample_lost(DataReader reader, SampleLostStatus status)
void on_requested_deadline_missed(DataReader reader, RequestedDeadlineMissedStatus status)
void on_offered_incompatible_qos(DataWriter writer, OfferedIncompatibleQosStatus status)
void waitUntilInitialised()
void on_requested_incompatible_qos(DataReader reader, RequestedIncompatibleQosStatus status)
void on_liveliness_changed(DataReader reader, LivelinessChangedStatus status)
void on_all_data_disposed(Topic arg0)
void on_data_on_readers(Subscriber subs)
void on_subscription_matched(DataReader reader, SubscriptionMatchedStatus status)
DomainParticipantListenerImpl(OsplServiceEnvironment environment, DomainParticipantImpl participant, DomainParticipantListener listener, boolean waitUntilInitialised)
This is the interface that can be implemented by an application-provided class and then registered wi...
void on_publication_matched(DataWriter writer, PublicationMatchedStatus status)
void on_inconsistent_topic(Topic the_topic, InconsistentTopicStatus status)
Topic is the most basic description of the data to be published and subscribed.
org.omg.dds.sub.Subscriber lookupSubscriber(DDS.Subscriber subs)
void on_offered_deadline_missed(DataWriter writer, OfferedDeadlineMissedStatus status)