OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org.opensplice.dds.domain.DomainParticipant Interface Reference

OpenSplice-specific extension of org.omg.dds.domain.DomainParticipant with support for deleting historical data from the durability service and creating a snapshot of current persistent data. More...

Inheritance diagram for org.opensplice.dds.domain.DomainParticipant:
Inheritance graph
Collaboration diagram for org.opensplice.dds.domain.DomainParticipant:
Collaboration graph

Public Member Functions

void assertLiveliness ()
 This operation manually asserts the liveliness of the DomainParticipant. More...
 
abstract void close ()
 Halt communication and dispose the resources held by this Entity. More...
 
void closeContainedEntities ()
 This operation deletes all the entities that were created by means of the "create" operations on the DomainParticipant. More...
 
boolean containsEntity (InstanceHandle handle)
 This operation checks whether or not the given handle represents an org.omg.dds.core.Entity that was created from the DomainParticipant. More...
 
public< TYPE > ContentFilteredTopic< TYPE > createContentFilteredTopic (String name, Topic<? extends TYPE > relatedTopic, String filterExpression, List< String > expressionParameters)
 This operation creates a org.omg.dds.topic.ContentFilteredTopic. More...
 
public< TYPE > ContentFilteredTopic< TYPE > createContentFilteredTopic (String name, Topic<? extends TYPE > relatedTopic, String filterExpression, String... expressionParameters)
 This operation creates a org.omg.dds.topic.ContentFilteredTopic. More...
 
public< TYPE > MultiTopic< TYPE > createMultiTopic (String name, Class< TYPE > type, String subscriptionExpression, List< String > expressionParameters)
 This operation creates a MultiTopic. More...
 
public< TYPE > MultiTopic< TYPE > createMultiTopic (String name, Class< TYPE > type, String subscriptionExpression, String... expressionParameters)
 This operation creates a MultiTopic. More...
 
public< TYPE > MultiTopic< TYPE > createMultiTopic (String name, TypeSupport< TYPE > type, String subscriptionExpression, List< String > expressionParameters)
 This operation creates a MultiTopic. More...
 
public< TYPE > MultiTopic< TYPE > createMultiTopic (String name, TypeSupport< TYPE > type, String subscriptionExpression, String... expressionParameters)
 This operation creates a MultiTopic. More...
 
void createPersistentSnapshot (String partitionExpression, String topicExpression, String uri)
 This operation will create a snapshot of all persistent data matching the provided partition and topic expressions and store the snapshot at the location indicated by the URI. More...
 
Publisher createPublisher ()
 This operation creates a Publisher with default QoS policies and no PublisherListener. More...
 
Publisher createPublisher (PublisherQos qos)
 This operation creates a Publisher. More...
 
Publisher createPublisher (PublisherQos qos, PublisherListener listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Publisher. More...
 
Publisher createPublisher (PublisherQos qos, PublisherListener listener, Class<? extends Status >... statuses)
 This operation creates a Publisher. More...
 
Subscriber createSubscriber ()
 This operation creates a Subscriber with default QoS policies and no SubscriberListener. More...
 
Subscriber createSubscriber (SubscriberQos qos)
 This operation creates a Subscriber. More...
 
Subscriber createSubscriber (SubscriberQos qos, SubscriberListener listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Subscriber. More...
 
Subscriber createSubscriber (SubscriberQos qos, SubscriberListener listener, Class<? extends Status >... statuses)
 This operation creates a Subscriber. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, Class< TYPE > type)
 This operation creates a Topic with default QoS policies and no TopicListener. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, Class< TYPE > type, TopicQos qos, TopicListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, Class< TYPE > type, TopicQos qos, TopicListener< TYPE > listener, Class<? extends Status >... statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, TypeSupport< TYPE > type)
 This operation creates a Topic with default QoS policies and no TopicListener. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, TypeSupport< TYPE > type, TopicQos qos, TopicListener< TYPE > listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
public< TYPE > Topic< TYPE > createTopic (String topicName, TypeSupport< TYPE > type, TopicQos qos, TopicListener< TYPE > listener, Class<? extends Status >... statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type)
 This operation creates a Topic with default QoS policies and no TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type, TopicQos qos, TopicListener< DynamicType > listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type, TopicQos qos, TopicListener< DynamicType > listener, Class<? extends Status >... statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type, TypeSupport< DynamicType > typeSupport)
 This operation creates a Topic with default QoS policies and no TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type, TypeSupport< DynamicType > typeSupport, TopicQos qos, TopicListener< DynamicType > listener, Collection< Class<? extends Status >> statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
Topic< DynamicTypecreateTopic (String topicName, DynamicType type, TypeSupport< DynamicType > typeSupport, TopicQos qos, TopicListener< DynamicType > listener, Class<? extends Status >... statuses)
 This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener. More...
 
void deleteHistoricalData (String partitionExpression, String topicExpression)
 This operation deletes all historical TRANSIENT and PERSISTENT data that is stored by the durability service that is configured to support this DomainParticipant. More...
 
void enable ()
 This operation enables the Entity. More...
 
public< TYPE > Topic< TYPE > findTopic (String topicName, Duration timeout) throws TimeoutException
 This operation gives access to an existing (or ready to exist) enabled Topic, based on its name. More...
 
public< TYPE > Topic< TYPE > findTopic (String topicName, long timeout, TimeUnit unit) throws TimeoutException
 This operation gives access to an existing (or ready to exist) enabled Topic, based on its name. More...
 
Subscriber getBuiltinSubscriber ()
 This operation allows access to the built-in Subscriber. More...
 
ModifiableTime getCurrentTime (ModifiableTime currentTime)
 This operation returns the current value of the time that the service uses to time stamp data writes and to set the reception time stamp for the data updates it receives. More...
 
Time getCurrentTime ()
 This operation returns the current value of the time that the service uses to time stamp data writes and to set the reception time stamp for the data updates it receives. More...
 
PublisherQos getDefaultPublisherQos ()
 This operation retrieves the default value of the Publisher QoS, that is, the QoS policies which will be used for newly created org.omg.dds.pub.Publisher entities in the case where the QoS policies are defaulted in the createPublisher() operation. More...
 
SubscriberQos getDefaultSubscriberQos ()
 This operation retrieves the default value of the Subscriber QoS, that is, the QoS policies which will be used for newly created org.omg.dds.sub.Subscriber entities in the case where the QoS policies are defaulted in the createSubscriber() operation. More...
 
TopicQos getDefaultTopicQos ()
 This operation retrieves the default value of the Topic QoS, that is, the QoS policies which will be used for newly created org.omg.dds.topic.Topic entities in the case where the QoS policies are defaulted in the createTopic(String, Class) operation. More...
 
ParticipantBuiltinTopicData getDiscoveredParticipantData (InstanceHandle participantHandle)
 This operation retrieves information on a DomainParticipant that has been discovered on the network. More...
 
Set< InstanceHandlegetDiscoveredParticipants ()
 This operation retrieves the list of DomainParticipants that have been discovered in the domain and that the application has not indicated should be "ignored" by means of the ignoreParticipant(InstanceHandle) operation. More...
 
TopicBuiltinTopicData getDiscoveredTopicData (InstanceHandle topicHandle)
 This operation retrieves information on a org.omg.dds.topic.Topic that has been discovered on the network. More...
 
Set< InstanceHandlegetDiscoveredTopics ()
 This operation retrieves the list of org.omg.dds.topic.Topics that have been discovered in the domain and that the application has not indicated should be "ignored" by means of the ignoreTopic(InstanceHandle) operation. More...
 
int getDomainId ()
 This operation retrieves the domain ID used to create the DomainParticipant. More...
 
ServiceEnvironment getEnvironment ()
 
InstanceHandle getInstanceHandle ()
 
LISTENER getListener ()
 This operation allows access to the existing Listener attached to the Entity. More...
 
String getProperty (String key)
 This operation looks up the property for a given key in the DomainParticipant, returning the value belonging to this key If the property has not been set using setProperty, the default value of the property is returned. More...
 
QOS getQos ()
 This operation allows access to the existing set of QoS policies for the Entity. More...
 
Set< Class<? extends Status > > getStatusChanges ()
 This operation retrieves the list of communication statuses in the Entity that are 'triggered. More...
 
StatusCondition< DomainParticipantgetStatusCondition ()
 This operation allows access to the org.omg.dds.core.StatusCondition associated with the Entity. More...
 
void ignoreParticipant (InstanceHandle handle)
 This operation allows an application to instruct the Service to locally ignore a remote domain participant. More...
 
void ignorePublication (InstanceHandle handle)
 This operation allows an application to instruct the Service to locally ignore a remote publication; a publication is defined by the association of a topic name, and user data and partition set on the org.omg.dds.pub.Publisher. More...
 
void ignoreSubscription (InstanceHandle handle)
 This operation allows an application to instruct the Service to locally ignore a remote subscription; a subscription is defined by the association of a topic name, and user data and partition set on the org.omg.dds.sub.Subscriber. More...
 
void ignoreTopic (InstanceHandle handle)
 This operation allows an application to instruct the Service to locally ignore a org.omg.dds.topic.Topic. More...
 
public< TYPE > TopicDescription< TYPE > lookupTopicDescription (String name)
 This operation gives access to an existing locally-created TopicDescription based on its name. More...
 
void retain ()
 Indicates that references to this object may go out of scope but that the application expects to look it up again later. More...
 
void setDefaultPublisherQos (PublisherQos qos)
 This operation sets a default value of the Publisher QoS policies, which will be used for newly created org.omg.dds.pub.Publisher entities in the case where the QoS policies are defaulted in the createPublisher() operation. More...
 
void setDefaultSubscriberQos (SubscriberQos qos)
 This operation sets a default value of the Subscriber QoS policies that will be used for newly created org.omg.dds.sub.Subscriber entities in the case where the QoS policies are defaulted in the createSubscriber() operation. More...
 
void setDefaultTopicQos (TopicQos qos)
 This operation sets a default value of the Topic QoS policies, which will be used for newly created org.omg.dds.topic.Topic entities in the case where the QoS policies are defaulted in the createTopic(String, Class) operation. More...
 
void setListener (LISTENER listener)
 This operation installs a Listener on the Entity. More...
 
void setListener (LISTENER listener, Collection< Class<? extends Status >> statuses)
 This operation installs a Listener on the Entity. More...
 
void setListener (LISTENER listener, Class<? extends Status >... statuses)
 This operation installs a Listener on the Entity. More...
 
void setProperty (String key, String value)
 This operation sets the property specified by a key value pair. More...
 
void setQos (QOS qos)
 This operation is used to set the QoS policies of the Entity. More...
 

Detailed Description

OpenSplice-specific extension of org.omg.dds.domain.DomainParticipant with support for deleting historical data from the durability service and creating a snapshot of current persistent data.

Definition at line 30 of file DomainParticipant.java.

Member Function Documentation

◆ assertLiveliness()

void org.omg.dds.domain.DomainParticipant.assertLiveliness ( )
inherited

This operation manually asserts the liveliness of the DomainParticipant.

This is used in combination with the org.omg.dds.core.policy.Liveliness to indicate to the Service that the entity remains active.

This operation needs to only be used if the DomainParticipant contains org.omg.dds.pub.DataWriter entities with the org.omg.dds.core.policy.Liveliness#getKind() set to org.omg.dds.core.policy.Liveliness.Kind#MANUAL_BY_PARTICIPANT and it only affects the liveliness of those DataWriter entities. Otherwise, it has no effect.

Note - Writing data via the org.omg.dds.pub.DataWriter#write(Object) operation on a DataWriter asserts liveliness on the DataWriter itself and its DomainParticipant. Consequently the use of assertLiveliness is only needed if the application is not writing data regularly.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ close()

abstract void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.close ( )
abstractinherited

Halt communication and dispose the resources held by this Entity.

Closing an Entity implicitly closes all of its contained objects, if any. For example, closing a Publisher also closes all of its contained DataWriters.

An Entity cannot be closed if it has any unclosed dependent objects, not including contained objects. These include the following:

The deletion of a org.omg.dds.pub.DataWriter will automatically unregister all instances. Depending on the settings of the org.omg.dds.core.policy.WriterDataLifecycle, the deletion of the DataWriter may also dispose all instances.

Exceptions
PreconditionNotMetExceptionif close is called on an Entity with unclosed dependent object(s), not including contained objects.
See also
org.omg.dds.topic.TopicDescription::close()

◆ closeContainedEntities()

void org.omg.dds.domain.DomainParticipant.closeContainedEntities ( )
inherited

This operation deletes all the entities that were created by means of the "create" operations on the DomainParticipant.

That is, it deletes all contained org.omg.dds.pub.Publisher, org.omg.dds.sub.Subscriber, org.omg.dds.topic.Topic, org.omg.dds.topic.ContentFilteredTopic, and org.omg.dds.topic.MultiTopic objects.

Prior to deleting each contained entity, this operation will recursively call the corresponding closeContainedEntities operation on each contained entity (if applicable). This pattern is applied recursively. In this manner the operation closeContainedEntities on the DomainParticipant will end up deleting all the entities recursively contained in the DomainParticipant, that is also the org.omg.dds.pub.DataWriter, org.omg.dds.sub.DataReader, as well as the org.omg.dds.sub.QueryCondition and org.omg.dds.sub.ReadCondition objects belonging to the contained DataReaders.

Once closeContainedEntities returns successfully, the application may delete the DomainParticipant knowing that it has no contained entities.

Exceptions
org.omg.dds.core.PreconditionNotMetExceptionif any of the contained entities is in a state where it cannot be closed.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ containsEntity()

boolean org.omg.dds.domain.DomainParticipant.containsEntity ( InstanceHandle  handle)
inherited

This operation checks whether or not the given handle represents an org.omg.dds.core.Entity that was created from the DomainParticipant.

The containment applies recursively. That is, it applies both to entities (org.omg.dds.topic.TopicDescription, org.omg.dds.pub.Publisher, or org.omg.dds.sub.Subscriber) created directly using the DomainParticipant as well as entities created using a contained Publisher or Subscriber as the factory, and so forth.

Parameters
handlethe handle to an entity that need to be checked. The instance handle for an Entity may be obtained from built-in topic data, from various statuses, or from the Entity operation org.omg.dds.core.Entity#getInstanceHandle().

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createContentFilteredTopic() [1/2]

public<TYPE> ContentFilteredTopic<TYPE> org.omg.dds.domain.DomainParticipant.createContentFilteredTopic ( String  name,
Topic<? extends TYPE >  relatedTopic,
String  filterExpression,
List< String >  expressionParameters 
)
inherited

This operation creates a org.omg.dds.topic.ContentFilteredTopic.

A ContentFilteredTopic can be used to do content-based subscriptions.

ContentFilteredTopic describes a more sophisticated subscription which indicates that the Subscriber does not necessarily want to see all values of each instance published under the Topic. Rather, it only wants to see the values whose contents satisfy certain criteria. Therefore this class must be used to request content-based subscriptions.

Parameters
<TYPE>The type of all samples subscribed to with the new ContentFilteredTopic. It may be the same as the type of the relatedTopic or any supertype of that type.
nameThe name of the new ContentFilteredTopic.
relatedTopicThe related Topic being subscribed to. The ContentFilteredTopic only relates to samples published under this Topic, filtered according to their content.
filterExpressionA logical(SQL) expression that involves the values of some of the data fields in the sample.
expressionParametersA collection of strings with the parameter value used in the SQL expression (i.e., the number of n tokens in the expression). The number of values in expressionParameters must be equal or greater than the highest referenced n token in the filterExpression (e.g. if %1 and %8 are used as parameter in the filterExpression, the expressionParameters should at least contain n+1 = 9 values).
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createContentFilteredTopic() [2/2]

public<TYPE> ContentFilteredTopic<TYPE> org.omg.dds.domain.DomainParticipant.createContentFilteredTopic ( String  name,
Topic<? extends TYPE >  relatedTopic,
String  filterExpression,
String...  expressionParameters 
)
inherited

This operation creates a org.omg.dds.topic.ContentFilteredTopic.

A ContentFilteredTopic can be used to do content-based subscriptions.

Parameters
<TYPE>The type of all samples subscribed to with the new ContentFilteredTopic. It may be the same as the type of the relatedTopic or any supertype of that type.
nameThe name of the new ContentFilteredTopic.
relatedTopicThe related Topic being subscribed to. The ContentFilteredTopic only relates to samples published under this Topic, filtered according to their content.
filterExpressionA logical expression that involves the values of some of the data fields in the sample.
expressionParametersA collection of strings with the parameter value used in the SQL expression (i.e., the number of n tokens in the expression). The number of values in expressionParameters must be equal or greater than the highest referenced n token in the filterExpression (e.g. if %1 and %8 are used as parameter in the filterExpression, the expressionParameters should at least contain n+1 = 9 values).
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createMultiTopic() [1/4]

public<TYPE> MultiTopic<TYPE> org.omg.dds.domain.DomainParticipant.createMultiTopic ( String  name,
Class< TYPE >  type,
String  subscriptionExpression,
List< String >  expressionParameters 
)
inherited

This operation creates a MultiTopic.

A MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type. In particular, MultiTopic provides a content-based subscription mechanism.

NOTE: MultiTopics are currently not supported by OpenSplice!

Parameters
<TYPE>The type of all samples subscribed to with the new MultiTopic.
nameThe name of the new MultiTopic.
typeThe resulting type. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
subscriptionExpressionThe list of topics and the logic used to combine filter and re-arrange the information from each Topic.
expressionParametersParameters to the filterExpression.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createMultiTopic() [2/4]

public<TYPE> MultiTopic<TYPE> org.omg.dds.domain.DomainParticipant.createMultiTopic ( String  name,
Class< TYPE >  type,
String  subscriptionExpression,
String...  expressionParameters 
)
inherited

This operation creates a MultiTopic.

A MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type. In particular, MultiTopic provides a content-based subscription mechanism.

NOTE: MultiTopics are currently not supported by OpenSplice!

Parameters
<TYPE>The type of all samples subscribed to with the new MultiTopic.
nameThe name of the new MultiTopic.
typeThe resulting type. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
subscriptionExpressionThe list of topics and the logic used to combine filter and re-arrange the information from each Topic.
expressionParametersParameters to the filterExpression.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createMultiTopic() [3/4]

public<TYPE> MultiTopic<TYPE> org.omg.dds.domain.DomainParticipant.createMultiTopic ( String  name,
TypeSupport< TYPE >  type,
String  subscriptionExpression,
List< String >  expressionParameters 
)
inherited

This operation creates a MultiTopic.

A MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type. In particular, MultiTopic provides a content-based subscription mechanism.

NOTE: MultiTopics are currently not supported by OpenSplice!

Parameters
<TYPE>The type of all samples subscribed to with the new MultiTopic.
nameThe name of the new MultiTopic.
typeA org.omg.dds.type.TypeSupport representing the resulting type.
subscriptionExpressionThe list of topics and the logic used to combine filter and re-arrange the information from each Topic.
expressionParametersParameters to the filterExpression.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createMultiTopic() [4/4]

public<TYPE> MultiTopic<TYPE> org.omg.dds.domain.DomainParticipant.createMultiTopic ( String  name,
TypeSupport< TYPE >  type,
String  subscriptionExpression,
String...  expressionParameters 
)
inherited

This operation creates a MultiTopic.

A MultiTopic can be used to subscribe to multiple topics and combine/filter the received data into a resulting type. In particular, MultiTopic provides a content-based subscription mechanism.

NOTE: MultiTopics are currently not supported by OpenSplice!

Parameters
<TYPE>The type of all samples subscribed to with the new MultiTopic.
nameThe name of the new MultiTopic.
typeA org.omg.dds.type.TypeSupport representing the resulting type.
subscriptionExpressionThe list of topics and the logic used to combine filter and re-arrange the information from each Topic.
expressionParametersParameters to the filterExpression.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ createPersistentSnapshot()

void org.opensplice.dds.domain.DomainParticipant.createPersistentSnapshot ( String  partitionExpression,
String  topicExpression,
String  uri 
)

This operation will create a snapshot of all persistent data matching the provided partition and topic expressions and store the snapshot at the location indicated by the URI.

Only persistent data available on the local node is considered. This operation will fire an event to trigger the snapshot creation by the durability service and then return while the durability service fulfills the snapshot request; if no durability service is available then there is no persistent data available and the operation will return OK as a snapshot of an empty store is an empty store.

The created snapshot can then be used as the persistent store for the durability service next time it starts up by configuring the location of the snapshot as the persistent store in the configuration file. The durability service will then use the snapshot as the regular store (and can thus also alter its contents).

Parameters
partitionExpressionThe expression of all partitions involved in the snapshot; this may contain wildcards
topicExpressionThe expression of all topics involved in the snapshot; this may contain wildcards.
uriThe location where to store the snapshot. Currently only directories are supported.
Exceptions
IllegalArgumentExceptionif partitionExpression, topicExpression or uri is null.
org.omg.dds.core.DDSExceptionAn internal error has occurred.

◆ createPublisher() [1/4]

Publisher org.omg.dds.domain.DomainParticipant.createPublisher ( )
inherited

This operation creates a Publisher with default QoS policies and no PublisherListener.

The created Publisher belongs to the DomainParticipant that is its factory.

Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
Returns
a Publisher object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createPublisher() [2/4]

Publisher org.omg.dds.domain.DomainParticipant.createPublisher ( PublisherQos  qos)
inherited

This operation creates a Publisher.

The created Publisher belongs to the DomainParticipant that is its factory.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createPublisher()
Returns
a Publisher object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createPublisher() [3/4]

Publisher org.omg.dds.domain.DomainParticipant.createPublisher ( PublisherQos  qos,
PublisherListener  listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Publisher.

The created Publisher belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.pub.PublisherListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • OfferedDeadlineMissedStatus
  • OfferedIncompatibleQosStatus
  • LivelinessLostStatus
  • PublicationMatchedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the PublisherListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createPublisher()
Returns
a Publisher object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createPublisher() [4/4]

Publisher org.omg.dds.domain.DomainParticipant.createPublisher ( PublisherQos  qos,
PublisherListener  listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Publisher.

The created Publisher belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.pub.PublisherListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • OfferedDeadlineMissedStatus
  • OfferedIncompatibleQosStatus
  • LivelinessLostStatus
  • PublicationMatchedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the PublisherListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createPublisher()
Returns
a Publisher object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createSubscriber() [1/4]

Subscriber org.omg.dds.domain.DomainParticipant.createSubscriber ( )
inherited

This operation creates a Subscriber with default QoS policies and no SubscriberListener.

The created Subscriber belongs to the DomainParticipant that is its factory.

Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
Returns
a Subscriber object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createSubscriber() [2/4]

Subscriber org.omg.dds.domain.DomainParticipant.createSubscriber ( SubscriberQos  qos)
inherited

This operation creates a Subscriber.

The created Subscriber belongs to the DomainParticipant that is its factory.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Subscriber will be created.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createSubscriber()
Returns
a Subscriber object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createSubscriber() [3/4]

Subscriber org.omg.dds.domain.DomainParticipant.createSubscriber ( SubscriberQos  qos,
SubscriberListener  listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Subscriber.

The created Subscriber belongs to the DomainParticipant that is its factory. For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.sub.SubscriberListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the SubscriberListener:

  • RequestedDeadlineMissedStatus
  • RequestedIncompatibleQosStatus
  • SampleRejectedStatus
  • LivelinessChangedStatus
  • DataAvailableStatus
  • DataOnReadersStatus
  • SubscriptionMatchedStatus
  • SampleLostStatus

Status Propagation:

In case a communication status is not activated in the statuses of the SubscriberListener, the communication status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Subscriber will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createSubscriber()
Returns
a Subscriber object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createSubscriber() [4/4]

Subscriber org.omg.dds.domain.DomainParticipant.createSubscriber ( SubscriberQos  qos,
SubscriberListener  listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Subscriber.

The created Subscriber belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.sub.SubscriberListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the SubscriberListener:

  • RequestedDeadlineMissedStatus
  • RequestedIncompatibleQosStatus
  • SampleRejectedStatus
  • LivelinessChangedStatus
  • DataAvailableStatus
  • DataOnReadersStatus
  • SubscriptionMatchedStatus
  • SampleLostStatus

Status Propagation:

In case a communication status is not activated in the statuses of the SubscriberListener, the communication status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Subscriber will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
createSubscriber()
Returns
a Subscriber object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [1/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
Class< TYPE >  type 
)
inherited

This operation creates a Topic with default QoS policies and no TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

Parameters
topicNameThe name of the new Topic.
typeThe type of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
Returns
a Topic object

◆ createTopic() [2/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
Class< TYPE >  type,
TopicQos  qos,
TopicListener< TYPE >  listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeThe type of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

◆ createTopic() [3/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
Class< TYPE >  type,
TopicQos  qos,
TopicListener< TYPE >  listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeThe type of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

◆ createTopic() [4/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
TypeSupport< TYPE >  type 
)
inherited

This operation creates a Topic with default QoS policies and no TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.TypeSupport representing the type of all samples to be published and subscribed over the new Topic.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

◆ createTopic() [5/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
TypeSupport< TYPE >  type,
TopicQos  qos,
TopicListener< TYPE >  listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.TypeSupport representing the type of all samples to be published and subscribed over the new Topic.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

◆ createTopic() [6/12]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
TypeSupport< TYPE >  type,
TopicQos  qos,
TopicListener< TYPE >  listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.TypeSupport representing the type of all samples to be published and subscribed over the new Topic.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

◆ createTopic() [7/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type 
)
inherited

This operation creates a Topic with default QoS policies and no TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [8/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type,
TopicQos  qos,
TopicListener< DynamicType listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [9/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type,
TopicQos  qos,
TopicListener< DynamicType listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType of all samples to be published and subscribed over the new Topic. The Service will attempt to locate an appropriate org.omg.dds.type.TypeSupport instance based on this type.
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [10/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type,
TypeSupport< DynamicType typeSupport 
)
inherited

This operation creates a Topic with default QoS policies and no TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType representing the type of all samples to be published and subscribed over the new Topic.
typeSupportA org.omg.dds.type.TypeSupport for org.omg.dds.type.dynamic.DynamicType.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [11/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type,
TypeSupport< DynamicType typeSupport,
TopicQos  qos,
TopicListener< DynamicType listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType
typeSupportA org.omg.dds.type.TypeSupport for org.omg.dds.type.dynamic.DynamicType
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ createTopic() [12/12]

Topic<DynamicType> org.omg.dds.domain.DomainParticipant.createTopic ( String  topicName,
DynamicType  type,
TypeSupport< DynamicType typeSupport,
TopicQos  qos,
TopicListener< DynamicType listener,
Class<? extends Status >...  statuses 
)
inherited

This operation creates a Topic with the desired QoS policies and attaches to it the specified TopicListener.

The created Topic belongs to the DomainParticipant that is its factory.

NOTE: Topics with a DynamicType are currently not supported by OpenSplice!

For each communication status, the StatusChangedFlag flag is initially set to false. It becomes true whenever that communication status changes. For each communication status activated in the mask, the associated org.omg.dds.topic.TopicListener operation is invoked and the communication status is reset to false, as the listener implicitly accesses the status which is passed as a parameter to that operation. The status is reset prior to calling the listener, so if the application calls the get<status_name>Status from inside the listener it will see the status already reset. The following statuses are applicable to the PublisherListener:

  • InconsistentTopicStatus
  • AllDataDisposedStatus

Status Propagation:

In case a communication status is not activated in the statuses of the TopicListener, the status will be propagated to the DomainParticipantListener of the containing DomainParticipant. In case the DomainParticipantListener is also not attached or the communication status is not activated in its mask, the application is not notified of the change.

Parameters
topicNameThe name of the new Topic.
typeA org.omg.dds.type.dynamic.DynamicType
typeSupportA org.omg.dds.type.TypeSupport for org.omg.dds.type.dynamic.DynamicType
qosThe desired QoS policies. If the specified QoS policies are not consistent, the operation will fail and no Publisher will be created.
listenerThe listener to be attached.
statusesOf which status changes the listener should be notified. A null collection signifies all status changes.
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.
org.omg.dds.core.InconsistentPolicyExceptionThe parameter qos contains conflicting QosPolicy settings.
See also
#createTopic(String, Class)
Returns
a Topic object

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ deleteHistoricalData()

void org.opensplice.dds.domain.DomainParticipant.deleteHistoricalData ( String  partitionExpression,
String  topicExpression 
)

This operation deletes all historical TRANSIENT and PERSISTENT data that is stored by the durability service that is configured to support this DomainParticipant.

It only deletes the samples stored in the transient and persistent store, samples stored in individual application DataReaders is spared and remains available to these readers. However, late-joiners will no longer be able to obtain the deleted samples.

The partition_expression and topic_expression strings can be used to specify selection criteria for the topic and/or partition in which the data will be deleted. Wildcards are supported. Note that these parameters are mandatory and cannot be empty. The "*" expression can be used to match all partitions and/or topics. Only data that exists prior to this method invocation is deleted. Data that is still being inserted during this method invocation will not be removed.

Parameters
partitionExpressionAn expression to define a filter on partitions.
topicExpressionAn expression to define a filter on topic names.
Exceptions
IllegalArgumentExceptionif partitionExpression or topicExpression is null.
org.omg.dds.core.DDSExceptionAn internal error has occurred.

◆ enable()

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.enable ( )
inherited

This operation enables the Entity.

Entity objects can be created either enabled or disabled. This is controlled by the value of the org.omg.dds.core.policy.EntityFactory on the corresponding factory for the Entity.

The default setting of org.omg.dds.core.policy.EntityFactory is such that, by default, it is not necessary to explicitly call enable on newly created entities.

The enable operation is idempotent. Calling enable on an already enabled Entity has no effect.

If an Entity has not yet been enabled, the following kinds of operations may be invoked on it:

  • Operations to set or get an Entity's QoS policies (including default QoS policies) and listener
  • getStatusCondition()
  • 'factory' operations and close()
  • getStatusChanges() and other get status operations (although the status of a disabled entity never changes)
  • 'lookup' operations

Other operations may explicitly state that they may be called on disabled entities; those that do not will fail with org.omg.dds.core.NotEnabledException.

It is legal to delete an Entity that has not been enabled by calling close(). Entities created from a factory that is disabled are created disabled regardless of the setting of org.omg.dds.core.policy.EntityFactory.

Calling enable on an Entity whose factory is not enabled will fail with org.omg.dds.core.PreconditionNotMetException.

If org.omg.dds.core.policy.EntityFactory#isAutoEnableCreatedEntities() is true, the enable operation on the factory will automatically enable all entities created from the factory.

The Listeners associated with an entity are not called until the entity is enabled. org.omg.dds.core.Conditions associated with an entity that is not enabled are "inactive," that is, have a triggerValue == false.

In addition to the general description, the enable operation on a org.omg.dds.sub.Subscriber has special meaning in specific usecases. This applies only to Subscribers with PresentationQoS coherent-access set to true with access-scope set to group.

In this case the subscriber is always created in a disabled state, regardless of the factory's auto-enable created entities setting. While the subscriber remains disabled, DataReaders can be created that will participate in coherent transactions of the subscriber.

See org.omg.dds.sub.Subscriber#beginAccess() and org.omg.dds.sub.Subscriber#endAccess() for more information.

All DataReaders will also be created in a disabled state. Coherency with group access-scope requires data to be delivered as a transaction, atomically, to all eligible readers. Therefore data should not be delivered to any single DataReader immediately after it's created, as usual, but only after the application has finished creating all DataReaders for a given Subscriber. At this point, the application should enable the Subscriber which in turn enables all its DataReaders.

Note that for a DataWriter which has a corresponding Publisher with a PresentationQoS with coherent-access set to true and access-scope set to topic or group that the HistoryQoS of the DataWriter should be set to KEEP_ALL otherwise the enable operation will fail. See org.omg.dds.pub.Publisher#createDataWriter(Topic, DataWriterQos, DataWriterListener, Collection)

◆ findTopic() [1/2]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.findTopic ( String  topicName,
Duration  timeout 
) throws TimeoutException
inherited

This operation gives access to an existing (or ready to exist) enabled Topic, based on its name.

The operation takes as arguments the name of the Topic and a timeout.

If a Topic of the same name already exists, it gives access to it, otherwise it waits (blocks the caller) until another mechanism creates it (or the specified timeout occurs). This other mechanism can be another thread, a configuration tool, or some other middleware service. Note that the Topic is a local object that acts as a 'proxy' to designate the global concept of topic. Middleware implementations could choose to propagate topics and make remotely created topics locally available.

A Topic obtained by means of findTopic must also be closed by means of org.omg.dds.topic.Topic#close() so that the local resources can be released. If a Topic is obtained multiple times by means of findTopic or createTopic(String, Class), it must also be closed that same number of times.

Regardless of whether the middleware chooses to propagate topics, the org.omg.dds.topic.Topic#close() operation disposes of only the local proxy.

Returns
a non-null Topic.
Exceptions
TimeoutExceptionif the specified timeout elapses and no suitable Topic could be found.

◆ findTopic() [2/2]

public<TYPE> Topic<TYPE> org.omg.dds.domain.DomainParticipant.findTopic ( String  topicName,
long  timeout,
TimeUnit  unit 
) throws TimeoutException
inherited

This operation gives access to an existing (or ready to exist) enabled Topic, based on its name.

The operation takes as arguments the name of the Topic and a timeout.

If a Topic of the same name already exists, it gives access to it, otherwise it waits (blocks the caller) until another mechanism creates it (or the specified timeout occurs). This other mechanism can be another thread, a configuration tool, or some other middleware service. Note that the Topic is a local object that acts as a 'proxy' to designate the global concept of topic. Middleware implementations could choose to propagate topics and make remotely created topics locally available.

A Topic obtained by means of findTopic must also be closed by means of org.omg.dds.topic.Topic#close() so that the local resources can be released. If a Topic is obtained multiple times by means of findTopic or createTopic(String, Class), it must also be closed that same number of times.

Regardless of whether the middleware chooses to propagate topics, the org.omg.dds.topic.Topic#close() operation disposes of only the local proxy.

Returns
a non-null Topic.
Exceptions
TimeoutExceptionif the specified timeout elapses and no suitable Topic could be found.
See also
findTopic(String, Duration)

◆ getBuiltinSubscriber()

Subscriber org.omg.dds.domain.DomainParticipant.getBuiltinSubscriber ( )
inherited

This operation allows access to the built-in Subscriber.

Each DomainParticipant contains several built-in org.omg.dds.topic.Topic objects as well as corresponding org.omg.dds.sub.DataReader objects to access them. All these DataReader objects belong to a single built-in Subscriber.

The built-in Topics are used to communicate information about other DomainParticipant, Topic, org.omg.dds.sub.DataReader, and org.omg.dds.pub.DataWriter objects.

Returns
the built-in subscriber

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getCurrentTime() [1/2]

ModifiableTime org.omg.dds.domain.DomainParticipant.getCurrentTime ( ModifiableTime  currentTime)
inherited

This operation returns the current value of the time that the service uses to time stamp data writes and to set the reception time stamp for the data updates it receives.

Parameters
currentTimea container for the current time, which the Service will overwrite with the result of this operation, or null, if the Service should store the current time in a new object.
Returns
currentTime, if it is non-null, or a new object otherwise.
See also
getCurrentTime()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getCurrentTime() [2/2]

Time org.omg.dds.domain.DomainParticipant.getCurrentTime ( )
inherited

This operation returns the current value of the time that the service uses to time stamp data writes and to set the reception time stamp for the data updates it receives.

Returns
an immutable object containing the current time.
See also
getCurrentTime(ModifiableTime)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDefaultPublisherQos()

PublisherQos org.omg.dds.domain.DomainParticipant.getDefaultPublisherQos ( )
inherited

This operation retrieves the default value of the Publisher QoS, that is, the QoS policies which will be used for newly created org.omg.dds.pub.Publisher entities in the case where the QoS policies are defaulted in the createPublisher() operation.

The values retrieved will match the set of values specified on the last successful call to setDefaultPublisherQos(PublisherQos), or else, if the call was never made, the default values identified by the DDS specification.

See also
setDefaultPublisherQos(PublisherQos)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDefaultSubscriberQos()

SubscriberQos org.omg.dds.domain.DomainParticipant.getDefaultSubscriberQos ( )
inherited

This operation retrieves the default value of the Subscriber QoS, that is, the QoS policies which will be used for newly created org.omg.dds.sub.Subscriber entities in the case where the QoS policies are defaulted in the createSubscriber() operation.

The values retrieved will match the set of values specified on the last successful call to setDefaultSubscriberQos(SubscriberQos), or else, if the call was never made, the default values identified by the DDS specification.

See also
setDefaultSubscriberQos(SubscriberQos)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDefaultTopicQos()

TopicQos org.omg.dds.domain.DomainParticipant.getDefaultTopicQos ( )
inherited

This operation retrieves the default value of the Topic QoS, that is, the QoS policies which will be used for newly created org.omg.dds.topic.Topic entities in the case where the QoS policies are defaulted in the createTopic(String, Class) operation.

The values retrieved will match the set of values specified on the last successful call to setDefaultTopicQos(TopicQos), or else, if the call was never made, the default values identified by the DDS specification.

See also
setDefaultTopicQos(TopicQos)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDiscoveredParticipantData()

ParticipantBuiltinTopicData org.omg.dds.domain.DomainParticipant.getDiscoveredParticipantData ( InstanceHandle  participantHandle)
inherited

This operation retrieves information on a DomainParticipant that has been discovered on the network.

The participant must be in the same domain as the participant on which this operation is invoked and must not have been "ignored" by means of the ignoreParticipant(InstanceHandle) operation.

Use the operation getDiscoveredParticipants() to find the DomainParticipants that are currently discovered.

Parameters
participantHandlea handle to the participant, the data of which is to be retrieved.
Returns
a new object containing a copy of the information.
Exceptions
org.omg.dds.core.PreconditionNotMetExceptionif the participantHandle does not correspond to a DomainParticipant such as is described above.
UnsupportedOperationExceptionIf the infrastructure does not locally maintain the connectivity information.
See also
getDiscoveredParticipants()
getDiscoveredTopicData(InstanceHandle)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDiscoveredParticipants()

Set<InstanceHandle> org.omg.dds.domain.DomainParticipant.getDiscoveredParticipants ( )
inherited

This operation retrieves the list of DomainParticipants that have been discovered in the domain and that the application has not indicated should be "ignored" by means of the ignoreParticipant(InstanceHandle) operation.

Returns
a new collection containing a copy of the information.
Exceptions
UnsupportedOperationExceptionIf the infrastructure does not locally maintain the connectivity information.
See also
getDiscoveredParticipantData(InstanceHandle)
getDiscoveredTopics()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDiscoveredTopicData()

TopicBuiltinTopicData org.omg.dds.domain.DomainParticipant.getDiscoveredTopicData ( InstanceHandle  topicHandle)
inherited

This operation retrieves information on a org.omg.dds.topic.Topic that has been discovered on the network.

The topic must be in the same domain as the participant on which this operation is invoked and must not have been "ignored" by means of the ignoreTopic(InstanceHandle) operation.

Use the operation getDiscoveredTopics() to find the Topics that are currently discovered.

Parameters
topicHandlea handle to the topic, the data of which is to be retrieved.
Returns
a new object containing a copy of the information.
Exceptions
org.omg.dds.core.PreconditionNotMetExceptionif the topicHandle does not correspond to a Topic such as is described above.
UnsupportedOperationExceptionIf the infrastructure does not locally maintain the connectivity information or if the infrastructure does not hold the information necessary to fill in the topicData.
See also
getDiscoveredTopics()
getDiscoveredParticipantData(InstanceHandle)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDiscoveredTopics()

Set<InstanceHandle> org.omg.dds.domain.DomainParticipant.getDiscoveredTopics ( )
inherited

This operation retrieves the list of org.omg.dds.topic.Topics that have been discovered in the domain and that the application has not indicated should be "ignored" by means of the ignoreTopic(InstanceHandle) operation.

Returns
a new collection containing a copy of the information.
Exceptions
UnsupportedOperationExceptionIf the infrastructure does not locally maintain the connectivity information.
See also
getDiscoveredTopicData(InstanceHandle)
getDiscoveredParticipants()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getDomainId()

int org.omg.dds.domain.DomainParticipant.getDomainId ( )
inherited

This operation retrieves the domain ID used to create the DomainParticipant.

The domain ID identifies the DDS domain to which the DomainParticipant belongs. Each DDS domain represents a separate data "communication plane" isolated from other domains.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getEnvironment()

ServiceEnvironment org.omg.dds.core.DDSObject.getEnvironment ( )
inherited
Returns
the org.omg.dds.core.ServiceEnvironment object that directly or indirectly was used to create this object.

Implemented in org.omg.dds.core.ServiceEnvironment, org.opensplice.dds.sub.ReflectionDataReader< TYPE, OUT_TYPE >, org.opensplice.dds.core.ModifiableTimeImpl, org.opensplice.dds.pub.ReflectionDataWriter< TYPE >, org.opensplice.dds.core.DurationImpl, org.opensplice.dds.topic.ContentFilteredTopicImpl< TYPE >, org.opensplice.dds.sub.ReadConditionImpl< TYPE >, org.opensplice.dds.core.EntityQosImpl< T extends QosPolicy >, org.opensplice.dds.type.TypeSupportImpl< TYPE >, org.opensplice.dds.topic.PublicationBuiltinTopicDataImpl, org.opensplice.dds.topic.SubscriptionBuiltinTopicDataImpl, org.opensplice.dds.topic.TopicBuiltinTopicDataImpl, org.opensplice.dds.domain.DomainParticipantFactoryImpl, org.opensplice.dds.core.QosProviderImpl, org.opensplice.dds.core.status.OfferedIncompatibleQosStatusImpl, org.opensplice.dds.core.status.RequestedIncompatibleQosStatusImpl, org.opensplice.dds.core.InstanceHandleImpl, org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>, org.opensplice.dds.core.status.LivelinessChangedStatusImpl, org.opensplice.dds.core.status.PublicationMatchedStatusImpl, org.opensplice.dds.core.status.SubscriptionMatchedStatusImpl, org.opensplice.dds.sub.SampleImpl< TYPE >, org.opensplice.dds.core.policy.ShareImpl, org.opensplice.dds.core.status.OfferedDeadlineMissedStatusImpl, org.opensplice.dds.core.status.SampleRejectedStatusImpl, org.opensplice.dds.core.WaitSetImpl, org.opensplice.dds.topic.ParticipantBuiltinTopicDataImpl, org.opensplice.dds.core.status.RequestedDeadlineMissedStatusImpl, org.opensplice.dds.topic.BuiltinTopicKeyImpl, org.opensplice.dds.core.GuardConditionImpl, org.opensplice.dds.core.event.AllDataDisposedEventImpl< TYPE >, org.opensplice.dds.core.policy.QosPolicyCountImpl, org.opensplice.dds.core.status.InconsistentTopicStatusImpl, org.opensplice.dds.core.status.LivelinessLostStatusImpl, org.opensplice.dds.core.status.SampleLostStatusImpl, org.opensplice.dds.core.policy.QosPolicyImpl, org.opensplice.dds.core.status.AllDataDisposedStatusImpl, org.opensplice.dds.core.IllegalArgumentExceptionImpl, org.opensplice.dds.core.InconsistentPolicyExceptionImpl, org.opensplice.dds.core.policy.PolicyFactoryImpl, org.opensplice.dds.core.policy.TypeConsistencyEnforcementImpl, org.opensplice.dds.core.PreconditionNotMetExceptionImpl, org.opensplice.dds.core.AlreadyClosedExceptionImpl, org.opensplice.dds.core.IllegalOperationExceptionImpl, org.opensplice.dds.core.ImmutablePolicyExceptionImpl, org.opensplice.dds.core.NotEnabledExceptionImpl, org.opensplice.dds.core.OutOfResourcesExceptionImpl, org.opensplice.dds.core.DDSExceptionImpl, org.opensplice.dds.core.status.DataAvailableStatusImpl, and org.opensplice.dds.core.status.DataOnReadersStatusImpl.

◆ getInstanceHandle()

InstanceHandle org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.getInstanceHandle ( )
inherited
Returns
the org.omg.dds.core.InstanceHandle that represents the Entity.

◆ getListener()

LISTENER org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.getListener ( )
inherited

This operation allows access to the existing Listener attached to the Entity.

Returns
The attached listener if set, or null otherwise.
See also
#setListener(EventListener)
#setListener(EventListener, Collection)

◆ getProperty()

String org.opensplice.dds.domain.DomainParticipant.getProperty ( String  key)

This operation looks up the property for a given key in the DomainParticipant, returning the value belonging to this key If the property has not been set using setProperty, the default value of the property is returned.

Parameters
keyThe name of the property to request the value from
Returns
the value of the requested property
Exceptions
IllegalArgumentExceptionif an invalid key has been specified
UnsupportedOperationExceptionif the key specifies an undefined property or the operation is not supported in this version.
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.AlreadyClosedExceptionThe corresponding DomainParticipant has been closed.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ getQos()

QOS org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.getQos ( )
inherited

This operation allows access to the existing set of QoS policies for the Entity.

This operation must be provided by each of the derived Entity classes (org.omg.dds.domain.DomainParticipant, org.omg.dds.topic.Topic, org.omg.dds.pub.Publisher, org.omg.dds.pub.DataWriter, org.omg.dds.sub.Subscriber, org.omg.dds.sub.DataReader) so that the policies meaningful to the particular Entity are retrieved.

See also
#setQos(EntityQos)

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ getStatusChanges()

Set<Class<? extends Status> > org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.getStatusChanges ( )
inherited

This operation retrieves the list of communication statuses in the Entity that are 'triggered.

' That is, the list of statuses whose value has changed since the last time the application read the status.

When the entity is first created or if the entity is not enabled, all communication statuses are in the "untriggered" state so the list returned will be empty.

The list of statuses returned refers to the statuses that are triggered on the Entity itself and does not include statuses that apply to contained entities.

Returns
a new Set containing the triggered statuses.

◆ getStatusCondition()

StatusCondition<DomainParticipant> org.omg.dds.domain.DomainParticipant.getStatusCondition ( )
inherited

This operation allows access to the org.omg.dds.core.StatusCondition associated with the Entity.

The returned condition can then be added to a org.omg.dds.core.WaitSet so that the application can wait for specific status changes that affect the Entity.

Implements org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ ignoreParticipant()

void org.omg.dds.domain.DomainParticipant.ignoreParticipant ( InstanceHandle  handle)
inherited

This operation allows an application to instruct the Service to locally ignore a remote domain participant.

From that point onwards, the Service will locally behave as if the remote participant did not exist. This means it will ignore any org.omg.dds.topic.Topic, publication, or subscription that originates on that domain participant.

This operation can be used, in conjunction with the discovery of remote participants offered by means of the "DCPSParticipant" built-in Topic, to provide, for example, access control. Application data can be associated with a DomainParticipant by means of the org.omg.dds.core.policy.UserData. This application data is propagated as a field in the built-in topic and can be used by an application to implement its own access control policy.

The domain participant to ignore is identified by the handle argument. This handle is the one that appears in the org.omg.dds.sub.Sample retrieved when reading the data samples available for the built-in DataReader to the "DCPSParticipant" topic. The built-in org.omg.dds.sub.DataReader is read with the same read/take operations used for any DataReader.

This operation is not required to be reversible. The Service offers no means to reverse it.

Parameters
handlethe instance handle of the entity which needs to be ignored
Exceptions
org.omg.dds.core.OutOfResourcesExceptionif the Service is unable to ignore the indicated participant because an internal resource has been exhausted.
java.lang.UnsupportedOperationExceptionif the supplied operation is not implemented.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ ignorePublication()

void org.omg.dds.domain.DomainParticipant.ignorePublication ( InstanceHandle  handle)
inherited

This operation allows an application to instruct the Service to locally ignore a remote publication; a publication is defined by the association of a topic name, and user data and partition set on the org.omg.dds.pub.Publisher.

After this call, any data written related to that publication will be ignored.

The org.omg.dds.pub.DataWriter to ignore is identified by the handle argument. This handle is the one that appears in the org.omg.dds.sub.Sample retrieved when reading the data samples from the built-in org.omg.dds.sub.DataReader to the "DCPSPublication" topic.

This operation is not required to be reversible. The Service offers no means to reverse it.

Parameters
handlethe instance handle of the entity which needs to be ignored
Exceptions
org.omg.dds.core.OutOfResourcesExceptionif the Service is unable to ignore the indicated publication because an internal resource has been exhausted.
java.lang.UnsupportedOperationExceptionif the supplied operation is not implemented.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ ignoreSubscription()

void org.omg.dds.domain.DomainParticipant.ignoreSubscription ( InstanceHandle  handle)
inherited

This operation allows an application to instruct the Service to locally ignore a remote subscription; a subscription is defined by the association of a topic name, and user data and partition set on the org.omg.dds.sub.Subscriber.

After this call, any data received related to that subscription will be ignored.

The org.omg.dds.sub.DataReader to ignore is identified by the handle argument. This handle is the one that appears in the org.omg.dds.sub.Sample retrieved when reading the data samples from the built-in DataReader to the "DCPSSubscription" topic.

This operation is not required to be reversible. The Service offers no means to reverse it.

Parameters
handlethe instance handle of the entity which needs to be ignored
Exceptions
org.omg.dds.core.OutOfResourcesExceptionif the Service is unable to ignore the indicated subscription because an internal resource has been exhausted.
java.lang.UnsupportedOperationExceptionif the supplied operation is not implemented.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ ignoreTopic()

void org.omg.dds.domain.DomainParticipant.ignoreTopic ( InstanceHandle  handle)
inherited

This operation allows an application to instruct the Service to locally ignore a org.omg.dds.topic.Topic.

This means it will locally ignore any publication or subscription to the Topic.

This operation can be used to save local resources when the application knows that it will never publish or subscribe to data under certain topics.

The Topic to ignore is identified by the handle argument. This handle is the one that appears in the org.omg.dds.sub.Sample retrieved when reading the data samples from the built-in org.omg.dds.sub.DataReader to the "DCPSTopic" topic.

This operation is not required to be reversible. The Service offers no means to reverse it.

Parameters
handlethe instance handle of the entity which needs to be ignored
Exceptions
org.omg.dds.core.OutOfResourcesExceptionif the Service is unable to ignore the indicated topic because an internal resource has been exhausted.
java.lang.UnsupportedOperationExceptionif the supplied operation is not implemented.

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ lookupTopicDescription()

public<TYPE> TopicDescription<TYPE> org.omg.dds.domain.DomainParticipant.lookupTopicDescription ( String  name)
inherited

This operation gives access to an existing locally-created TopicDescription based on its name.

The operation takes as argument the name of the TopicDescription.

If a TopicDescription of the same name already exists, it gives access to it, otherwise it returns null. The operation never blocks.

The operation may be used to locate any locally-created org.omg.dds.topic.Topic, org.omg.dds.topic.ContentFilteredTopic, or org.omg.dds.topic.MultiTopic object.

Unlike findTopic(String, Duration), the operation searches only among the locally created topics. Therefore, it should never create a new TopicDescription. The TopicDescription returned does not require an extra org.omg.dds.topic.TopicDescription#close(). It is still possible to close the TopicDescription returned by this method, provided it has no readers or writers, but then it is really closed and subsequent lookups will fail.

If the operation fails to locate a TopicDescription, it returns null.

Parameters
<TYPE>The type of all samples subscribed to with the TopicDescription.
nameThe name of the TopicDescription to look up.

◆ retain()

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.retain ( )
inherited

Indicates that references to this object may go out of scope but that the application expects to look it up again later.

Therefore, the Service must consider this object to be still in use and may not close it automatically.

◆ setDefaultPublisherQos()

void org.omg.dds.domain.DomainParticipant.setDefaultPublisherQos ( PublisherQos  qos)
inherited

This operation sets a default value of the Publisher QoS policies, which will be used for newly created org.omg.dds.pub.Publisher entities in the case where the QoS policies are defaulted in the createPublisher() operation.

Parameters
qosthe new publisher qos.
Exceptions
org.omg.dds.core.InconsistentPolicyExceptionif the resulting policies are not self consistent; in that case, the operation will have no effect.
See also
getDefaultPublisherQos()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ setDefaultSubscriberQos()

void org.omg.dds.domain.DomainParticipant.setDefaultSubscriberQos ( SubscriberQos  qos)
inherited

This operation sets a default value of the Subscriber QoS policies that will be used for newly created org.omg.dds.sub.Subscriber entities in the case where the QoS policies are defaulted in the createSubscriber() operation.

Parameters
qosthe new subscriber qos.
Exceptions
org.omg.dds.core.InconsistentPolicyExceptionif the resulting policies are not self consistent; in that case, the operation will have no effect.
See also
getDefaultSubscriberQos()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ setDefaultTopicQos()

void org.omg.dds.domain.DomainParticipant.setDefaultTopicQos ( TopicQos  qos)
inherited

This operation sets a default value of the Topic QoS policies, which will be used for newly created org.omg.dds.topic.Topic entities in the case where the QoS policies are defaulted in the createTopic(String, Class) operation.

Parameters
qosthe new topic qos.
Exceptions
org.omg.dds.core.InconsistentPolicyExceptionif the resulting policies are not self consistent; in that case, the operation will have no effect.
See also
getDefaultTopicQos()

Implemented in org.opensplice.dds.domain.DomainParticipantImpl.

◆ setListener() [1/3]

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.setListener ( LISTENER  listener)
inherited

This operation installs a Listener on the Entity.

The listener will only be invoked on all communication statuses pertaining to the concrete type of this entity.

It is permitted to use null as the value of the listener. The null listener behaves as a Listener whose operations perform no action.

Only one listener can be attached to each Entity. If a listener was already set, the operation will replace it with the new one. Consequently if the value null is passed for the listener parameter, any existing listener will be removed.

Parameters
listenerthe listener to attach.
See also
getListener()
#setListener(EventListener, Collection)

◆ setListener() [2/3]

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.setListener ( LISTENER  listener,
Collection< Class<? extends Status >>  statuses 
)
inherited

This operation installs a Listener on the Entity.

The listener will only be invoked on the changes of communication status indicated by the specified mask.

It is permitted to use null as the value of the listener. The null listener behaves as a Listener whose operations perform no action.

Only one listener can be attached to each Entity. If a listener was already set, the operation will replace it with the new one. Consequently if the value null is passed for the listener parameter, any existing listener will be removed.

See also
getListener()
#setListener(EventListener)

◆ setListener() [3/3]

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.setListener ( LISTENER  listener,
Class<? extends Status >...  statuses 
)
inherited

This operation installs a Listener on the Entity.

The listener will only be invoked on the changes of communication status indicated by the specified mask.

It is permitted to use null as the value of the listener. The null listener behaves as a Listener whose operations perform no action.

Only one listener can be attached to each Entity. If a listener was already set, the operation will replace it with the new one. Consequently if the value null is passed for the listener parameter, any existing listener will be removed.

See also
getListener()
#setListener(EventListener)

◆ setProperty()

void org.opensplice.dds.domain.DomainParticipant.setProperty ( String  key,
String  value 
)

This operation sets the property specified by a key value pair.

Currently, the following property is defined:

isolateNode The isolateNode property allows applications to isolate the federation from the rest of the Domain, i.e. at network level disconnect the node from the rest of the system. Additionally, they also need to be able to issue a request to reconnect their federation to the domain again after which the durability merge-policy that is configured needs to be applied.

To isolate a federation, the application needs to set the isolateNode property value to 'true' and to (de)isolate the federation the same property needs to set to 'false'. The default value of the isolateNode property is 'false'.

All data that is published after isolateNode is set to true will not be sent to the network and any data received from the network will be ignored. Be aware that data being processed by the network service at time of isolating a node may still be sent to the network due to asynchronous nature of network service internals.

The value is interpreted as a boolean (i.e., it must be either 'true' or 'false'). false (default): The federation is connected to the domain. true: The federation is disconnected from the domain meaning that data is not published on the network and data from the network is ignored.

Parameters
keyThe name of the property
valueThe value of the property
Exceptions
IllegalArgumentExceptionif an invalid value has been specified
UnsupportedOperationExceptionif the key specifies an undefined property or the operation is not supported in this version.
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.AlreadyClosedExceptionThe corresponding DomainParticipant has been closed.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ setQos()

void org.omg.dds.core.Entity< LISTENER extends EventListener, QOS extends EntityQos<?>.setQos ( QOS  qos)
inherited

This operation is used to set the QoS policies of the Entity.

This operation must be provided by each of the derived Entity classes (org.omg.dds.domain.DomainParticipant, org.omg.dds.topic.Topic, org.omg.dds.pub.Publisher, org.omg.dds.pub.DataWriter, org.omg.dds.sub.Subscriber, org.omg.dds.sub.DataReader) so that the policies that are meaningful to each Entity can be set.

The set of policies specified as the parameter are applied on top of the existing QoS, replacing the values of any policies previously set.

Certain policies are "immutable"; they can only be set at Entity creation time, or before the entity is made enabled. If setQos is invoked after the Entity is enabled and it attempts to change the value of an "immutable" policy, the operation will fail with org.omg.dds.core.ImmutablePolicyException.

Certain values of QoS policies can be incompatible with the settings of the other policies. The setQos operation will also fail if it specifies a set of values that once combined with the existing values would result in an inconsistent set of policies. In this case, it shall fail with org.omg.dds.core.InconsistentPolicyException.

If the application supplies a non-default value for a QoS policy that is not supported by the implementation of the service, the setQos operation will fail with UnsupportedOperationException.

The existing set of policies are only changed if the setQos operation succeeds. In all other cases, none of the policies is modified.

Exceptions
ImmutablePolicyExceptionif an immutable policy changes its value.
InconsistentPolicyExceptionif a combination of policies is inconsistent with one another.
UnsupportedOperationExceptionif an unsupported policy has a non-default value.
See also
getQos()

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