21 package org.opensplice.dds.core;
24 import java.util.concurrent.ConcurrentHashMap;
26 import java.util.concurrent.TimeUnit;
51 private final Map<String, Object> environment;
55 this.environment =
new ConcurrentHashMap<String, Object>();
57 if (environment != null) {
58 this.environment.putAll(environment);
64 this.environment = null;
71 if (this.environment != null) {
72 value = this.environment.get(name);
92 this.environment = environment;
105 "getTypeFactory() not implemented yet.");
110 String registeredName) {
116 typeName = type.getName();
117 superType = Class.forName(typeName).getSuperclass();
119 if (superType != null) {
120 if (
"com.google.protobuf.GeneratedMessage".equals(superType
123 this.environment, type, registeredName);
127 type, registeredName);
132 "Allocating new TypeSupport failed. " 134 +
"' is not a support type for this DDS implementation.");
136 }
catch (ClassNotFoundException e) {
138 "Allocating new TypeSupport failed. " + e.getMessage());
145 return new DurationImpl(this.environment, duration, unit);
151 DDS.DURATION_INFINITE_SEC.value,
152 DDS.DURATION_INFINITE_NSEC.value);
158 DDS.DURATION_ZERO_SEC.value, DDS.DURATION_ZERO_NSEC.value);
168 return new TimeImpl(this.environment,
169 DDS.TIMESTAMP_INVALID_SEC.value,
170 DDS.TIMESTAMP_INVALID_NSEC.value);
176 DDS.HANDLE_NIL.value);
192 DDS.STATUS_MASK_ANY_V1_2.value);
198 DDS.STATUS_MASK_NONE.value);
208 return this.policyFactory;
214 "getDynamicDataFactory() not implemented yet.");
220 "newKeyedString() not implemented yet.");
226 "newKeyedBytes() not implemented yet.");
Object getEnvironmentValue(String name)
DynamicTypeFactory getTypeFactory()
DynamicDataFactory getDynamicDataFactory()
static< SOME_TYPE > org.omg.dds.type.TypeSupport< SOME_TYPE > getInstance(OsplServiceEnvironment environment, Class< SOME_TYPE > dataType, String registeredName)
Duration newDuration(long duration, TimeUnit unit)
Construct a org.omg.dds.core.Duration of the given magnitude.
A GuardCondition object is a specific Condition whose triggerValue is completely under the control of...
Duration infiniteDuration()
A WaitSet object allows an application to wait until one or more of the attached org.omg.dds.core.Condition objects has a triggerValue of true or else until the timeout expires.
Set< Class<? extends Status > > noStatusKinds()
KeyedString newKeyedString()
InstanceHandle nilHandle()
static Set< Class<? extends Status > > convertMask(OsplServiceEnvironment environment, int state)
GuardCondition newGuardCondition()
QosProvider newQosProvider(String uri, String profile)
Create a QosProvider fetching QoS configuration from the specified URI.
An opaque handle that can be used to refer to a local or remote entity.
PolicyFactory getPolicyFactory()
Provides an instance of org.omg.dds.core.policy.PolicyFactory.
ServiceProviderInterface getSPI()
This interface is for the use of the DDS implementation, not of DDS applications. ...
The sole purpose of this class is to allow the creation and destruction of org.omg.dds.domain.DomainParticipant objects.
The QoS provider API allows users to specify the QoS settings of their DCPS entities outside of appli...
OsplServiceEnvironment(Map< String, Object > environment)
ModifiableTime newTime(long time, TimeUnit units)
Construct a specific instant in time.
DomainParticipantFactory getParticipantFactory()
TypeSupport is an abstract interface that has to be specialized for each concrete type that will be u...
A span of elapsed time expressed with nanosecond precision.
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...
KeyedBytes newKeyedBytes()
A moment in time expressed with nanosecond precision (though not necessarily nanosecond accuracy)...
Status is the abstract root class for all communication status objects.
Set< Class<? extends Status > > allStatusKinds()