OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org.opensplice.dds.type.TypeSupportImpl< TYPE > Class Template Reference
Inheritance diagram for org.opensplice.dds.type.TypeSupportImpl< TYPE >:
Inheritance graph
Collaboration diagram for org.opensplice.dds.type.TypeSupportImpl< TYPE >:
Collaboration graph

Public Member Functions

 TypeSupportImpl (OsplServiceEnvironment environment, Class< TYPE > dataType, String typeName)
 
AbstractDataReader< TYPE > createDataReader (SubscriberImpl subscriber, TopicDescriptionExt< TYPE > topicDescription, DataReaderQos qos, DataReaderListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
 
AbstractDataWriter< TYPE > createDataWriter (PublisherImpl publisher, AbstractTopic< TYPE > topic, DataWriterQos qos, DataWriterListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
 
AbstractTopic< TYPE > createTopic (DomainParticipantImpl participant, String topicName, TopicQos qos, TopicListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
 
ServiceEnvironment getEnvironment ()
 
DDS.TypeSupport getOldTypeSupport ()
 
Class< TYPE > getType ()
 
String getTypeName ()
 
TYPE newData ()
 

Static Public Member Functions

static< TYPE > TypeSupport< TYPE > newTypeSupport (Class< TYPE > type, ServiceEnvironment env)
 Create a new TypeSupport object for the given physical type. More...
 
static< TYPE > TypeSupport< TYPE > newTypeSupport (Class< TYPE > type, String registeredName, ServiceEnvironment env)
 Create a new TypeSupport object for the given physical type. More...
 

Detailed Description

Definition at line 46 of file TypeSupportImpl.java.

Constructor & Destructor Documentation

◆ TypeSupportImpl()

org.opensplice.dds.type.TypeSupportImpl< TYPE >.TypeSupportImpl ( OsplServiceEnvironment  environment,
Class< TYPE >  dataType,
String  typeName 
)

Definition at line 53 of file TypeSupportImpl.java.

Member Function Documentation

◆ createDataReader()

AbstractDataReader<TYPE> org.opensplice.dds.type.TypeSupportImpl< TYPE >.createDataReader ( SubscriberImpl  subscriber,
TopicDescriptionExt< TYPE >  topicDescription,
DataReaderQos  qos,
DataReaderListener< TYPE >  listener,
Collection< Class<? extends Status >>  statuses 
)

Definition at line 134 of file TypeSupportImpl.java.

◆ createDataWriter()

AbstractDataWriter<TYPE> org.opensplice.dds.type.TypeSupportImpl< TYPE >.createDataWriter ( PublisherImpl  publisher,
AbstractTopic< TYPE >  topic,
DataWriterQos  qos,
DataWriterListener< TYPE >  listener,
Collection< Class<? extends Status >>  statuses 
)

Definition at line 125 of file TypeSupportImpl.java.

◆ createTopic()

AbstractTopic<TYPE> org.opensplice.dds.type.TypeSupportImpl< TYPE >.createTopic ( DomainParticipantImpl  participant,
String  topicName,
TopicQos  qos,
TopicListener< TYPE >  listener,
Collection< Class<? extends Status >>  statuses 
)

Definition at line 143 of file TypeSupportImpl.java.

◆ getEnvironment()

Returns
the org.omg.dds.core.ServiceEnvironment object that directly or indirectly was used to create this object.

Implements org.omg.dds.core.DDSObject.

Definition at line 89 of file TypeSupportImpl.java.

◆ getOldTypeSupport()

DDS.TypeSupport org.opensplice.dds.type.TypeSupportImpl< TYPE >.getOldTypeSupport ( )

Definition at line 120 of file TypeSupportImpl.java.

◆ getType()

Class<TYPE> org.opensplice.dds.type.TypeSupportImpl< TYPE >.getType ( )

Definition at line 107 of file TypeSupportImpl.java.

◆ getTypeName()

String org.opensplice.dds.type.TypeSupportImpl< TYPE >.getTypeName ( )

Definition at line 112 of file TypeSupportImpl.java.

◆ newData()

TYPE org.opensplice.dds.type.TypeSupportImpl< TYPE >.newData ( )

Definition at line 94 of file TypeSupportImpl.java.

◆ newTypeSupport() [1/2]

static <TYPE> TypeSupport<TYPE> org.omg.dds.type.TypeSupport< TYPE >.newTypeSupport ( Class< TYPE >  type,
ServiceEnvironment  env 
)
staticinherited

Create a new TypeSupport object for the given physical type.

This method is equivalent to:

newTypeSupport(type, type.getClass().getName(), bootstrap)

See also
#newTypeSupport(Class, String, ServiceEnvironment)

Definition at line 49 of file TypeSupport.java.

◆ newTypeSupport() [2/2]

static <TYPE> TypeSupport<TYPE> org.omg.dds.type.TypeSupport< TYPE >.newTypeSupport ( Class< TYPE >  type,
String  registeredName,
ServiceEnvironment  env 
)
staticinherited

Create a new TypeSupport object for the given physical type.

The Service will register this type under the given name with any participant with which the TypeSupport is used.

Parameters
<TYPE>The physical type of all samples read or written by any org.omg.dds.sub.DataReader or org.omg.dds.pub.DataWriter typed by the resulting TypeSupport.
typeThe physical type of all samples read or written by any org.omg.dds.sub.DataReader or org.omg.dds.pub.DataWriter typed by the resulting TypeSupport.
registeredNameThe logical name under which this type will be registered with any org.omg.dds.domain.DomainParticipant with which the resulting TypeSupport is used.
envIdentifies the Service instance to which the new object will belong.
Returns
A new TypeSupport object, which can subsequently be used to create one or more org.omg.dds.topic.Topics.
See also
#newTypeSupport(Class, ServiceEnvironment)

Definition at line 87 of file TypeSupport.java.


The documentation for this class was generated from the following file: