21 package org.opensplice.dds.core.policy;
61 return new DDS.UserDataQosPolicy(p.
getValue());
65 DDS.UserDataQosPolicy old) {
70 DDS.EntityFactoryQosPolicy old) {
74 public static DDS.EntityFactoryQosPolicy
convert(
80 DDS.SchedulingQosPolicy old) {
83 switch (old.scheduling_class.kind.value()) {
84 case DDS.SchedulingClassQosPolicyKind._SCHEDULE_DEFAULT:
87 case DDS.SchedulingClassQosPolicyKind._SCHEDULE_REALTIME:
90 case DDS.SchedulingClassQosPolicyKind._SCHEDULE_TIMESHARING:
95 "Failed to convert listenerSchedulingClass");
97 switch (old.scheduling_priority_kind.kind.value()) {
98 case DDS.SchedulingPriorityQosPolicyKind._PRIORITY_ABSOLUTE:
101 case DDS.SchedulingPriorityQosPolicyKind._PRIORITY_RELATIVE:
106 "Failed to convert listenerSchedulingKind");
113 DDS.SchedulingQosPolicy old =
new DDS.SchedulingQosPolicy();
117 old.scheduling_class =
new DDS.SchedulingClassQosPolicy(
118 DDS.SchedulingClassQosPolicyKind.SCHEDULE_DEFAULT);
121 old.scheduling_class =
new DDS.SchedulingClassQosPolicy(
122 DDS.SchedulingClassQosPolicyKind.SCHEDULE_REALTIME);
125 old.scheduling_class =
new DDS.SchedulingClassQosPolicy(
126 DDS.SchedulingClassQosPolicyKind.SCHEDULE_TIMESHARING);
130 "Failed to convert listenerSchedulingClass");
135 old.scheduling_priority_kind =
new DDS.SchedulingPriorityQosPolicy(
136 DDS.SchedulingPriorityQosPolicyKind.PRIORITY_ABSOLUTE);
139 old.scheduling_priority_kind =
new DDS.SchedulingPriorityQosPolicy(
140 DDS.SchedulingPriorityQosPolicyKind.PRIORITY_RELATIVE);
144 "Failed to convert listenerSchedulingKind");
152 DDS.Duration_t old) {
161 DDS.DeadlineQosPolicy old) {
171 DDS.DestinationOrderQosPolicy old) {
172 switch (old.kind.value()) {
173 case DDS.DestinationOrderQosPolicyKind._BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS:
175 case DDS.DestinationOrderQosPolicyKind._BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS:
179 "Unknown DestinationOrder kind.");
183 public static DDS.DestinationOrderQosPolicy
convert(
186 case BY_RECEPTION_TIMESTAMP:
187 return new DDS.DestinationOrderQosPolicy(
188 DDS.DestinationOrderQosPolicyKind.BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS);
189 case BY_SOURCE_TIMESTAMP:
190 return new DDS.DestinationOrderQosPolicy(
191 DDS.DestinationOrderQosPolicyKind.BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS);
194 "Unknown DestinationOrder kind.");
199 DDS.DurabilityQosPolicy old) {
200 switch (old.kind.value()) {
201 case DDS.DurabilityQosPolicyKind._VOLATILE_DURABILITY_QOS:
203 case DDS.DurabilityQosPolicyKind._TRANSIENT_LOCAL_DURABILITY_QOS:
205 case DDS.DurabilityQosPolicyKind._TRANSIENT_DURABILITY_QOS:
207 case DDS.DurabilityQosPolicyKind._PERSISTENT_DURABILITY_QOS:
211 "Unknown Durability kind.");
219 return new DDS.DurabilityQosPolicy(
220 DDS.DurabilityQosPolicyKind.VOLATILE_DURABILITY_QOS);
221 case TRANSIENT_LOCAL:
222 return new DDS.DurabilityQosPolicy(
223 DDS.DurabilityQosPolicyKind.TRANSIENT_LOCAL_DURABILITY_QOS);
225 return new DDS.DurabilityQosPolicy(
226 DDS.DurabilityQosPolicyKind.TRANSIENT_DURABILITY_QOS);
228 return new DDS.DurabilityQosPolicy(
229 DDS.DurabilityQosPolicyKind.PERSISTENT_DURABILITY_QOS);
232 "Unknown Durability kind.");
237 DDS.DurabilityServiceQosPolicy old) {
240 switch (old.history_kind.value()) {
241 case DDS.HistoryQosPolicyKind._KEEP_ALL_HISTORY_QOS:
244 case DDS.HistoryQosPolicyKind._KEEP_LAST_HISTORY_QOS:
252 old.service_cleanup_delay), kind, old.history_depth,
253 old.max_samples, old.max_instances,
254 old.max_samples_per_instance);
257 public static DDS.DurabilityServiceQosPolicy
convert(
259 DDS.HistoryQosPolicyKind kind;
263 kind = DDS.HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS;
266 kind = DDS.HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS;
271 "Unknown History kind.");
273 return new DDS.DurabilityServiceQosPolicy(
convert(env,
280 DDS.HistoryQosPolicy old) {
283 switch (old.kind.value()) {
284 case DDS.HistoryQosPolicyKind._KEEP_ALL_HISTORY_QOS:
287 case DDS.HistoryQosPolicyKind._KEEP_LAST_HISTORY_QOS:
298 DDS.HistoryQosPolicyKind kind;
302 kind = DDS.HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS;
305 kind = DDS.HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS;
310 return new DDS.HistoryQosPolicy(kind, p.
getDepth());
314 DDS.LatencyBudgetQosPolicy old) {
318 public static DDS.LatencyBudgetQosPolicy
convert(
324 DDS.LifespanQosPolicy old) {
334 DDS.ReaderLifespanQosPolicy old) {
335 if (old.use_lifespan ==
false) {
341 public static DDS.ReaderLifespanQosPolicy
convert(
344 return new DDS.ReaderLifespanQosPolicy(
false,
345 DDS.DURATION_ZERO.value);
347 return new DDS.ReaderLifespanQosPolicy(
true,
convert(env,
352 DDS.ShareQosPolicy old) {
353 if (old.enable ==
false) {
361 return new DDS.ShareQosPolicy(
"",
false);
363 return new DDS.ShareQosPolicy(p.
getName(),
true);
367 DDS.SubscriptionKeyQosPolicy old) {
368 if (old.use_key_list ==
false) {
374 public static DDS.SubscriptionKeyQosPolicy
convert(
377 return new DDS.SubscriptionKeyQosPolicy(
false,
new String[0]);
379 return new DDS.SubscriptionKeyQosPolicy(
true, p.
getKey().toArray(
380 new String[p.
getKey().size()]));
384 DDS.TimeBasedFilterQosPolicy old) {
386 old.minimum_separation));
389 public static DDS.TimeBasedFilterQosPolicy
convert(
396 DDS.LivelinessQosPolicy old) {
399 switch (old.kind.value()) {
400 case DDS.LivelinessQosPolicyKind._AUTOMATIC_LIVELINESS_QOS:
403 case DDS.LivelinessQosPolicyKind._MANUAL_BY_PARTICIPANT_LIVELINESS_QOS:
406 case DDS.LivelinessQosPolicyKind._MANUAL_BY_TOPIC_LIVELINESS_QOS:
411 "Unknown Liveliness kind.");
418 DDS.LivelinessQosPolicyKind kind;
422 kind = DDS.LivelinessQosPolicyKind.AUTOMATIC_LIVELINESS_QOS;
424 case MANUAL_BY_PARTICIPANT:
425 kind = DDS.LivelinessQosPolicyKind.MANUAL_BY_PARTICIPANT_LIVELINESS_QOS;
427 case MANUAL_BY_TOPIC:
428 kind = DDS.LivelinessQosPolicyKind.MANUAL_BY_TOPIC_LIVELINESS_QOS;
432 "Unknown Liveliness kind.");
434 return new DDS.LivelinessQosPolicy(kind,
convert(env,
439 DDS.OwnershipQosPolicy old) {
442 switch (old.kind.value()) {
443 case DDS.OwnershipQosPolicyKind._SHARED_OWNERSHIP_QOS:
446 case DDS.OwnershipQosPolicyKind._EXCLUSIVE_OWNERSHIP_QOS:
451 "Unknown Ownership kind.");
458 DDS.OwnershipQosPolicyKind kind;
462 kind = DDS.OwnershipQosPolicyKind.SHARED_OWNERSHIP_QOS;
465 kind = DDS.OwnershipQosPolicyKind.EXCLUSIVE_OWNERSHIP_QOS;
469 "Unknown Ownership kind.");
471 return new DDS.OwnershipQosPolicy(kind);
475 DDS.ReliabilityQosPolicy old) {
478 switch (old.kind.value()) {
479 case DDS.ReliabilityQosPolicyKind._BEST_EFFORT_RELIABILITY_QOS:
482 case DDS.ReliabilityQosPolicyKind._RELIABLE_RELIABILITY_QOS:
487 "Unknown Reliability kind.");
490 old.max_blocking_time), old.synchronous);
497 DDS.ReliabilityQosPolicyKind kind;
501 synchronous = r.isSynchronous();
502 }
catch (ClassCastException e) {
507 kind = DDS.ReliabilityQosPolicyKind.RELIABLE_RELIABILITY_QOS;
510 kind = DDS.ReliabilityQosPolicyKind.BEST_EFFORT_RELIABILITY_QOS;
514 "Unknown Reliability kind.");
516 return new DDS.ReliabilityQosPolicy(kind,
convert(env,
521 DDS.ResourceLimitsQosPolicy old) {
523 old.max_samples_per_instance);
526 public static DDS.ResourceLimitsQosPolicy
convert(
533 DDS.TopicDataQosPolicy old) {
539 return new DDS.TopicDataQosPolicy(p.
getValue());
543 DDS.TransportPriorityQosPolicy old) {
547 public static DDS.TransportPriorityQosPolicy
convert(
549 return new DDS.TransportPriorityQosPolicy(p.
getValue());
553 DDS.GroupDataQosPolicy old) {
559 return new DDS.GroupDataQosPolicy(p.
getValue());
563 DDS.PartitionQosPolicy old) {
569 Set<String> partitions = p.
getName();
570 String[] pArray = p.
getName().toArray(
new String[partitions.size()]);
572 return new DDS.PartitionQosPolicy(pArray);
576 DDS.PresentationQosPolicy old) {
579 switch (old.access_scope.value()) {
580 case DDS.PresentationQosPolicyAccessScopeKind._INSTANCE_PRESENTATION_QOS:
583 case DDS.PresentationQosPolicyAccessScopeKind._TOPIC_PRESENTATION_QOS:
586 case DDS.PresentationQosPolicyAccessScopeKind._GROUP_PRESENTATION_QOS:
591 "Unknown Presentation AccessScope kind.");
599 DDS.PresentationQosPolicyAccessScopeKind kind;
603 kind = DDS.PresentationQosPolicyAccessScopeKind.INSTANCE_PRESENTATION_QOS;
606 kind = DDS.PresentationQosPolicyAccessScopeKind.TOPIC_PRESENTATION_QOS;
609 kind = DDS.PresentationQosPolicyAccessScopeKind.GROUP_PRESENTATION_QOS;
613 "Unknown Presentation AccessScope kind.");
620 DDS.OwnershipStrengthQosPolicy old) {
624 public static DDS.OwnershipStrengthQosPolicy
convert(
626 return new DDS.OwnershipStrengthQosPolicy(p.
getValue());
630 DDS.WriterDataLifecycleQosPolicy old) {
632 old.autodispose_unregistered_instances,
convert(env,
633 old.autopurge_suspended_samples_delay),
convert(env,
634 old.autounregister_instance_delay));
637 public static DDS.WriterDataLifecycleQosPolicy
convert(
639 Duration autoPurgeSuspendedSamplesDelay, autoUnregisterInstanceDelay;
644 autoPurgeSuspendedSamplesDelay = w
645 .getAutoPurgeSuspendedSamplesDelay();
646 autoUnregisterInstanceDelay = w.getAutoUnregisterInstanceDelay();
647 }
catch (ClassCastException e) {
654 return new DDS.WriterDataLifecycleQosPolicy(
656 autoPurgeSuspendedSamplesDelay),
convert(env,
657 autoUnregisterInstanceDelay));
661 DDS.ReaderDataLifecycleQosPolicy old) {
664 switch (old.invalid_sample_visibility.kind.value()) {
665 case DDS.InvalidSampleVisibilityQosPolicyKind._ALL_INVALID_SAMPLES:
668 case DDS.InvalidSampleVisibilityQosPolicyKind._MINIMUM_INVALID_SAMPLES:
671 case DDS.InvalidSampleVisibilityQosPolicyKind._NO_INVALID_SAMPLES:
676 "Unknown ReaderDataLifecycle InvalidSampleVisibilityKind.");
680 old.autopurge_disposed_samples_delay),
681 old.autopurge_dispose_all, kind);
684 public static DDS.ReaderDataLifecycleQosPolicy
convert(
688 boolean autoPurgeDisposeAll;
689 DDS.InvalidSampleVisibilityQosPolicy invalidSampleVisibility;
694 switch (r.getInvalidSampleInvisibility()) {
696 invalidSampleVisibility =
new DDS.InvalidSampleVisibilityQosPolicy(
697 DDS.InvalidSampleVisibilityQosPolicyKind.ALL_INVALID_SAMPLES);
700 invalidSampleVisibility =
new DDS.InvalidSampleVisibilityQosPolicy(
701 DDS.InvalidSampleVisibilityQosPolicyKind.MINIMUM_INVALID_SAMPLES);
704 invalidSampleVisibility =
new DDS.InvalidSampleVisibilityQosPolicy(
705 DDS.InvalidSampleVisibilityQosPolicyKind.NO_INVALID_SAMPLES);
709 "Unknown ReaderDataLifecycle InvalidSampleVisibilityKind.");
712 }
catch (ClassCastException e) {
713 autoPurgeDisposeAll =
false;
714 invalidSampleVisibility =
new DDS.InvalidSampleVisibilityQosPolicy(
715 DDS.InvalidSampleVisibilityQosPolicyKind.MINIMUM_INVALID_SAMPLES);
718 return new DDS.ReaderDataLifecycleQosPolicy(
convert(env,
719 p.getAutoPurgeNoWriterSamplesDelay()),
convert(env,
720 p.getAutoPurgeDisposedSamplesDelay()), autoPurgeDisposeAll,
721 true, invalidSampleVisibility);
724 public static Class<? extends QosPolicy>
convert(
726 Class<? extends QosPolicy> policy;
729 case DDS.DEADLINE_QOS_POLICY_ID.value:
732 case DDS.DESTINATIONORDER_QOS_POLICY_ID.value:
735 case DDS.DURABILITY_QOS_POLICY_ID.value:
738 case DDS.DURABILITYSERVICE_QOS_POLICY_ID.value:
741 case DDS.ENTITYFACTORY_QOS_POLICY_ID.value:
744 case DDS.GROUPDATA_QOS_POLICY_ID.value:
747 case DDS.HISTORY_QOS_POLICY_ID.value:
750 case DDS.LATENCYBUDGET_QOS_POLICY_ID.value:
753 case DDS.LIFESPAN_QOS_POLICY_ID.value:
756 case DDS.LIVELINESS_QOS_POLICY_ID.value:
759 case DDS.OWNERSHIP_QOS_POLICY_ID.value:
762 case DDS.OWNERSHIPSTRENGTH_QOS_POLICY_ID.value:
765 case DDS.PARTITION_QOS_POLICY_ID.value:
768 case DDS.PRESENTATION_QOS_POLICY_ID.value:
771 case DDS.READERDATALIFECYCLE_QOS_POLICY_ID.value:
774 case DDS.RELIABILITY_QOS_POLICY_ID.value:
777 case DDS.RESOURCELIMITS_QOS_POLICY_ID.value:
780 case DDS.SCHEDULING_QOS_POLICY_ID.value:
783 case DDS.TIMEBASEDFILTER_QOS_POLICY_ID.value:
786 case DDS.TOPICDATA_QOS_POLICY_ID.value:
789 case DDS.TRANSPORTPRIORITY_QOS_POLICY_ID.value:
792 case DDS.USERDATA_QOS_POLICY_ID.value:
795 case DDS.WRITERDATALIFECYCLE_QOS_POLICY_ID.value:
808 policy =
Share.class;
810 case DDS.INVALID_QOS_POLICY_ID.value:
815 "Found unknown QoSPolicy id: " + policyId);
This QosPolicy provides OpenSplice-specific extensions to the org.omg.dds.core.policy.WriterDataLifecycle.
Specifies the configuration of the durability service.
VOLATILE
The Service does not need to keep any samples of data instances on behalf of any org.omg.dds.sub.DataReader that is not known by the org.omg.dds.pub.DataWriter at the time the instance is written.
Specifies the behavior of the org.omg.dds.sub.DataReader with regards to the life cycle of the data i...
ServiceEnvironment getEnvironment()
boolean isCoherentAccess()
If coherentAccess is set, then the accessScope controls the maximum extent of coherent changes...
static Class<? extends QosPolicy > convert(OsplServiceEnvironment env, int policyId)
static Duration convert(OsplServiceEnvironment env, DDS.Duration_t old)
MANUAL_BY_PARTICIPANT
The user application takes responsibility to signal liveliness to the Service.
static DDS.GroupDataQosPolicy convert(OsplServiceEnvironment env, GroupData p)
RELIABLE
Specifies the Service will attempt to deliver all samples in its history.
[optional] Specifies the value of the "strength" used to arbitrate among multiple org...
static DDS.TimeBasedFilterQosPolicy convert(OsplServiceEnvironment env, TimeBasedFilter p)
Scheduling withKind(SchedulingKind schedulingKind)
Copy this policy and override the value of the property.
Specifies the behavior of the org.omg.dds.pub.DataWriter with regards to the life cycle of the data i...
byte [] getValue()
Get a copy of the data.
static SubscriptionKeys convert(OsplServiceEnvironment env, DDS.SubscriptionKeyQosPolicy old)
This org.omg.dds.core.policy.QosPolicy is similar to the org.omg.dds.core.policy.Lifespan (applicable...
KEEP_ALL
On the publishing side, the Service will attempt to keep all samples (representing each value written...
static DDS.DurabilityQosPolicy convert(OsplServiceEnvironment env, Durability p)
static DDS.ReliabilityQosPolicy convert(OsplServiceEnvironment env, Reliability p)
Specifies the maximum acceptable delay from the time the data is written until the data is inserted i...
This class provides OpenSplice-specific extensions to the org.omg.dds.core.policy.ReaderDataLifecycle policy.
static Ownership convert(OsplServiceEnvironment env, DDS.OwnershipQosPolicy old)
Filter that allows a org.omg.dds.sub.DataReader to specify that it is interested only in (potentially...
Scheduling withSchedulingClass(SchedulingClass schedulingClass)
Copy this policy and override the value of the property.
boolean isAutoEnableCreatedEntities()
static OwnershipStrength convert(OsplServiceEnvironment env, DDS.OwnershipStrengthQosPolicy old)
static DDS.ShareQosPolicy convert(OsplServiceEnvironment env, Share p)
static EntityFactory convert(OsplServiceEnvironment env, DDS.EntityFactoryQosPolicy old)
static DDS.EntityFactoryQosPolicy convert(OsplServiceEnvironment env, EntityFactory p)
static TransportPriority convert(OsplServiceEnvironment env, DDS.TransportPriorityQosPolicy old)
static DDS.PresentationQosPolicy convert(OsplServiceEnvironment env, Presentation p)
static DDS.DestinationOrderQosPolicy convert(OsplServiceEnvironment env, DestinationOrder p)
User data not known by the middleware, but distributed by means of built-in topics.
static Presentation convert(OsplServiceEnvironment env, DDS.PresentationQosPolicy old)
int getMaxSamplesPerInstance()
static Lifespan convert(OsplServiceEnvironment env, DDS.LifespanQosPolicy old)
static Liveliness convert(OsplServiceEnvironment env, DDS.LivelinessQosPolicy old)
static TopicData convert(OsplServiceEnvironment env, DDS.TopicDataQosPolicy old)
static DDS.Duration_t convert(OsplServiceEnvironment environment, Duration d)
static History convert(OsplServiceEnvironment env, DDS.HistoryQosPolicy old)
static DDS.TransportPriorityQosPolicy convert(OsplServiceEnvironment env, TransportPriority p)
BY_SOURCE_TIMESTAMP
Indicates that data is ordered based on a time stamp placed at the source (by the Service or by the a...
static DDS.ResourceLimitsQosPolicy convert(OsplServiceEnvironment env, ResourceLimits p)
static GroupData convert(OsplServiceEnvironment env, DDS.GroupDataQosPolicy old)
This policy allows the introduction of a logical partition concept inside the "physical" partition in...
specifies the priority type, which may be either RELATIVE or ABSOLUTE.
abstract ServiceProviderInterface getSPI()
This method is not intended for use by applications.
static DDS.ReaderDataLifecycleQosPolicy convert(OsplServiceEnvironment env, org.omg.dds.core.policy.ReaderDataLifecycle p)
AUTOMATIC
The infrastructure will automatically signal liveliness for the org.omg.dds.pub.DataWriters at least ...
int getMaxSamplesPerInstance()
static ResourceLimits convert(OsplServiceEnvironment env, DDS.ResourceLimitsQosPolicy old)
static Share convert(OsplServiceEnvironment env, DDS.ShareQosPolicy old)
This QosPolicy allows sharing of entities by multiple processes or threads.
static DDS.DurabilityServiceQosPolicy convert(OsplServiceEnvironment env, DurabilityService p)
static DDS.Duration_t convert(OsplServiceEnvironment env, Duration p)
static ReaderLifespan convert(OsplServiceEnvironment env, DDS.ReaderLifespanQosPolicy old)
byte [] getValue()
Get a copy of the data.
boolean getAutoPurgeDisposeAll()
Whether or not instances that have been disposed by means of the org.opensplice.dds.topic.Topic#disposeAllData() method will automatically be purged by the middleware or not.
static DDS.OwnershipStrengthQosPolicy convert(OsplServiceEnvironment env, OwnershipStrength p)
AccessScopeKind getAccessScope()
EXCLUSIVE
Indicates each instance can only be owned by one org.omg.dds.pub.DataWriter, but the owner of an inst...
static Deadline convert(OsplServiceEnvironment env, DDS.DeadlineQosPolicy old)
static DDS.PartitionQosPolicy convert(OsplServiceEnvironment env, Partition p)
KEEP_LAST
On the publishing side, the Service will only attempt to keep the most recent "depth" samples (org...
static TimeBasedFilter convert(OsplServiceEnvironment env, DDS.TimeBasedFilterQosPolicy old)
static DDS.LifespanQosPolicy convert(OsplServiceEnvironment env, Lifespan p)
SchedulingClass getSchedulingClass()
static DDS.WriterDataLifecycleQosPolicy convert(OsplServiceEnvironment env, WriterDataLifecycle p)
byte [] getValue()
Get a copy of the data.
static Durability convert(OsplServiceEnvironment env, DDS.DurabilityQosPolicy old)
static DDS.SchedulingQosPolicy convert(OsplServiceEnvironment env, Scheduling p)
static DurabilityService convert(OsplServiceEnvironment env, DDS.DurabilityServiceQosPolicy old)
SHARED
Indicates shared ownership for each instance.
Specifies how the samples representing changes to data instances are presented to the subscribing app...
User data not known by the middleware, but distributed by means of built-in topics.
static DDS.UserDataQosPolicy convert(OsplServiceEnvironment env, UserData p)
This QosPolicy specifies the scheduling parameters that will be used for a thread that is spawned by ...
Duration getServiceCleanupDelay()
OpenSplice-specific extension to org.omg.dds.core.policy.Reliability That specifies whether a DataWri...
BEST_EFFORT
Indicates that it is acceptable to not retry propagation of any samples.
TRANSIENT
The Service will attempt to keep some samples so that they can be delivered to any potential late-joi...
static ReaderDataLifecycle convert(OsplServiceEnvironment env, DDS.ReaderDataLifecycleQosPolicy old)
static UserData convert(OsplServiceEnvironment env, DDS.UserDataQosPolicy old)
static DDS.LatencyBudgetQosPolicy convert(OsplServiceEnvironment env, LatencyBudget p)
Determines the mechanism and parameters used by the application to determine whether an org...
PERSISTENT
Data is kept on permanent storage, so that they can outlive a system session.
static DDS.ReaderLifespanQosPolicy convert(OsplServiceEnvironment env, ReaderLifespan p)
By using the SubscriptionKey QosPolicy, a DataReader can force its own key-list definition on data sa...
This policy is a hint to the infrastructure as to how to set the priority of the underlying transport...
INSTANCE
Scope spans only a single instance.
static Scheduling convert(OsplServiceEnvironment env, DDS.SchedulingQosPolicy old)
Duration getMinimumSeparation()
This class is the abstract root for all the QoS policies.
static WriterDataLifecycle convert(OsplServiceEnvironment env, DDS.WriterDataLifecycleQosPolicy old)
boolean isAutDisposeUnregisteredInstances()
History.Kind getHistoryKind()
TRANSIENT_LOCAL
The Service will attempt to keep some samples so that they can be delivered to any potential late-joi...
specifies the scheduling class used by the Operating System, which may be DEFAULT, REALTIME or TIMESHARING.
static DestinationOrder convert(OsplServiceEnvironment env, DDS.DestinationOrderQosPolicy old)
static DDS.DeadlineQosPolicy convert(OsplServiceEnvironment env, Deadline p)
Duration getLeaseDuration()
static DDS.HistoryQosPolicy convert(OsplServiceEnvironment env, History p)
Controls the criteria used to determine the logical order among changes made by org.omg.dds.pub.Publisher entities to the same instance of data (i.e., matching Topic and key).
MANUAL_BY_TOPIC
The user application takes responsibility to signal liveliness to the Service.
static Reliability convert(OsplServiceEnvironment env, DDS.ReliabilityQosPolicy old)
A span of elapsed time expressed with nanosecond precision.
Duration getMaxBlockingTime()
static DDS.LivelinessQosPolicy convert(OsplServiceEnvironment env, Liveliness p)
BY_RECEPTION_TIMESTAMP
Indicates that data is ordered based on the reception time at each org.omg.dds.sub.Subscriber.
Specifies the resources that the Service can consume in order to meet the requested QoS...
Controls the behavior of the org.omg.dds.core.Entity when acting as a factory for other entities...
static Partition convert(OsplServiceEnvironment env, DDS.PartitionQosPolicy old)
This policy indicates the level of reliability requested by a org.omg.dds.sub.DataReader or offered b...
boolean isOrderedAccess()
If orderedAccess is set, then the accessScope controls the maximum extent for which order will be pre...
static LatencyBudget convert(OsplServiceEnvironment env, DDS.LatencyBudgetQosPolicy old)
This QosPolicy is used to set the key list of a DataReaderView.
This policy expresses if the data should "outlive" their writing time.
static DDS.SubscriptionKeyQosPolicy convert(OsplServiceEnvironment env, SubscriptionKeys p)
Duration infiniteDuration()
static DDS.OwnershipQosPolicy convert(OsplServiceEnvironment env, Ownership p)
org.omg.dds.sub.DataReader expects a new sample updating the value of each instance at least once eve...
TOPIC
Scope spans to all instances within the same org.omg.dds.pub.DataWriter (or org.omg.dds.sub.DataReader), but not across instances in different DataWriter (or DataReader).
GROUP
[optional] Scope spans to all instances belonging to org.omg.dds.pub.DataWriter (or org...
This QosPolicy specifies whether a DataWriter exclusively may own an instance.
static DDS.TopicDataQosPolicy convert(OsplServiceEnvironment env, TopicData p)
Specifies the maximum duration of validity of the data written by the org.omg.dds.pub.DataWriter.
Instance state changes are communicated to a org.omg.dds.sub.DataReader by means of the sample info a...
User data not known by the middleware, but distributed by means of built-in topics.
Specifies the behavior of the Service in the case where the value of a sample changes (one or more ti...