OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
PolicyFactoryImpl.java
Go to the documentation of this file.
1 /*
2  * Vortex OpenSplice
3  *
4  * This software and documentation are Copyright 2006 to 2021 ADLINK
5  * Technology Limited, its affiliated companies and licensors. All rights
6  * reserved.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21 package org.opensplice.dds.core.policy;
22 
29 
30 public class PolicyFactoryImpl extends PolicyFactory {
31  private final OsplServiceEnvironment environment;
32 
34  this.environment = environment;
35  }
36 
37  @Override
39  return this.environment;
40  }
41 
42  @Override
44  return new DurabilityImpl(this.environment);
45  }
46 
47  @Override
49  return new DeadlineImpl(this.environment);
50  }
51 
52  @Override
54  return new LatencyBudgetImpl(this.environment);
55  }
56 
57  @Override
59  return new LivelinessImpl(this.environment);
60  }
61 
62  @Override
64  return new DestinationOrderImpl(this.environment);
65  }
66 
67  @Override
69  return new HistoryImpl(this.environment);
70  }
71 
72  @Override
74  return new ResourceLimitsImpl(this.environment);
75  }
76 
77  @Override
79  return new UserDataImpl(this.environment);
80  }
81 
82  @Override
84  return new OwnershipImpl(this.environment);
85  }
86 
87  @Override
89  return new TimeBasedFilterImpl(this.environment);
90  }
91 
92  @Override
94  return new ReaderDataLifecycleImpl(this.environment);
95  }
96 
97  @Override
99  return new DataRepresentationImpl(this.environment);
100  }
101 
102  @Override
104  return new TypeConsistencyEnforcementImpl(this.environment,
105  Kind.EXACT_TYPE_TYPE_CONSISTENCY);
106  }
107 
108  @Override
110  return new DurabilityServiceImpl(this.environment);
111  }
112 
113  @Override
115  return new ReliabilityImpl(this.environment);
116  }
117 
118  @Override
120  return new TransportPriorityImpl(this.environment);
121  }
122 
123  @Override
125  return new LifespanImpl(this.environment);
126  }
127 
128  @Override
130  return new OwnershipStrengthImpl(this.environment);
131  }
132 
133  @Override
135  return new WriterDataLifecycleImpl(this.environment);
136  }
137 
138  @Override
140  return new PartitionImpl(this.environment);
141  }
142 
143  @Override
145  return new GroupDataImpl(this.environment);
146  }
147 
148  @Override
150  return new EntityFactoryImpl(this.environment);
151  }
152 
153  @Override
155  return new PresentationImpl(this.environment);
156  }
157 
158  @Override
160  return new TopicDataImpl(this.environment);
161  }
162 
163  @Override
165  return new ShareImpl(this.environment);
166  }
167 
168  @Override
170  return new ReaderLifespanImpl(this.environment);
171  }
172 
173  @Override
175  return new SchedulingImpl(this.environment);
176  }
177 
178  @Override
180  return new SchedulingImpl(this.environment);
181  }
182 
183  @Override
185  return new SubscriptionKeysImpl(this.environment);
186  }
187 
188  @Override
190  return new ViewKeysImpl(this.environment);
191  }
192 }
Specifies the configuration of the durability service.
Specifies the behavior of the org.omg.dds.sub.DataReader with regards to the life cycle of the data i...
org.omg.dds.core.policy.Presentation Presentation()
[optional] Specifies the value of the "strength" used to arbitrate among multiple org...
org.omg.dds.core.policy.TimeBasedFilter TimeBasedFilter()
Specifies the behavior of the org.omg.dds.pub.DataWriter with regards to the life cycle of the data i...
org.opensplice.dds.core.policy.Share Share()
org.omg.dds.core.policy.OwnershipStrength OwnershipStrength()
This org.omg.dds.core.policy.QosPolicy is similar to the org.omg.dds.core.policy.Lifespan (applicable...
Specifies the maximum acceptable delay from the time the data is written until the data is inserted i...
Filter that allows a org.omg.dds.sub.DataReader to specify that it is interested only in (potentially...
User data not known by the middleware, but distributed by means of built-in topics.
Definition: UserData.java:48
org.omg.dds.core.policy.Liveliness Liveliness()
This policy allows the introduction of a logical partition concept inside the "physical" partition in...
Definition: Partition.java:86
org.omg.dds.core.policy.WriterDataLifecycle WriterDataLifecycle()
This QosPolicy allows sharing of entities by multiple processes or threads.
Definition: Share.java:46
org.omg.dds.core.policy.DestinationOrder DestinationOrder()
org.omg.dds.core.policy.Partition Partition()
org.omg.dds.core.policy.Deadline Deadline()
org.omg.dds.core.policy.ResourceLimits ResourceLimits()
org.opensplice.dds.core.policy.Scheduling.ListenerScheduling ListenerScheduling()
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.
Definition: GroupData.java:44
Scheduling for the Watchdog thread of a org.omg.dds.domain.DomainParticipant.
This QosPolicy specifies the scheduling parameters that will be used for a thread that is spawned by ...
Definition: Scheduling.java:45
org.omg.dds.core.policy.DurabilityService DurabilityService()
org.omg.dds.core.policy.EntityFactory EntityFactory()
Determines the mechanism and parameters used by the application to determine whether an org...
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...
org.omg.dds.core.policy.ReaderDataLifecycle ReaderDataLifecycle()
org.omg.dds.core.policy.TopicData TopicData()
org.omg.dds.core.policy.TransportPriority TransportPriority()
org.omg.dds.core.policy.Reliability Reliability()
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).
org.opensplice.dds.core.policy.ReaderLifespan ReaderLifespan()
org.omg.dds.core.policy.Durability Durability()
org.omg.dds.core.policy.UserData UserData()
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
org.opensplice.dds.core.policy.SubscriptionKeys SubscriptionKeys()
Scheduling for the Listener thread of a org.omg.dds.domain.DomainParticipant.
PolicyFactoryImpl(OsplServiceEnvironment environment)
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...
This policy indicates the level of reliability requested by a org.omg.dds.sub.DataReader or offered b...
org.omg.dds.core.policy.LatencyBudget LatencyBudget()
This QosPolicy is used to set the key list of a DataReaderView.
Definition: ViewKeys.java:54
This policy expresses if the data should "outlive" their writing time.
OpenSplice-specific extension of org.omg.dds.core.policy.PolicyFactory that supports an extra set of ...
org.omg.dds.sub.DataReader expects a new sample updating the value of each instance at least once eve...
Definition: Deadline.java:92
org.omg.dds.core.policy.GroupData GroupData()
This QosPolicy specifies whether a DataWriter exclusively may own an instance.
Definition: Ownership.java:63
org.omg.dds.core.policy.Ownership Ownership()
Specifies the maximum duration of validity of the data written by the org.omg.dds.pub.DataWriter.
Definition: Lifespan.java:57
org.opensplice.dds.core.policy.ViewKeys ViewKeys()
User data not known by the middleware, but distributed by means of built-in topics.
Definition: TopicData.java:42
Specifies the behavior of the Service in the case where the value of a sample changes (one or more ti...
Definition: History.java:76