RTI Routing Service  Version 5.3.0
 All Classes Files Functions Variables Groups
Connection Interface Reference

Connection interface (required). More...

Inheritance diagram for Connection:
Entity DiscoveryConnection

Public Member Functions

Session createSession (Properties properties) throws AdapterException
 Creates a Session.
 
void deleteSession (Session session) throws AdapterException
 Deletes a Session.
 
StreamReader createStreamReader (Session session, StreamInfo streamInfo, Properties properties, StreamReaderListener listener) throws AdapterException
 Creates a StreamReader.
 
void deleteStreamReader (StreamReader streamReader) throws AdapterException
 Deletes a StreamReader.
 
StreamWriter createStreamWriter (Session session, StreamInfo streamInfo, Properties properties) throws AdapterException
 Creates a StreamWriter.
 
void deleteStreamWriter (StreamWriter streamWriter) throws AdapterException
 Deletes a StreamWriter.
 
Properties getAttributes () throws AdapterException
 [Not supported] Returns the Connection attributes.
 
- Public Member Functions inherited from Entity
void update (Properties properties) throws AdapterException
 Updates the configuration of an adapter entity.
 

Detailed Description

Connection interface (required).

A Connection object provides access to a data domain (such as a DDS domain or a JMS network provider).

In the XML configuration file, Connections are created using the tags <connection_1> and <connection_2> within a domain route.

Member Function Documentation

Session createSession ( Properties  properties) throws AdapterException

Creates a Session.

A Session is a concurrency unit within a Connection that has an associated set of StreamReaders and StreamWriters. Access to the StreamReaders and StreamWriters in the same Session is serialized by RTI Routing Service.

Session objects are created when the associated routing service sessions are enabled.

In the XML configuration file, Sessions are associated with the tag <session> within a domain route.

The Java implementation of this method can return null if sessions are not required by the adapter.

Parameters
properties<<in>> Configuration properties for the Session.
Returns
New Session if successful.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.deleteSession
void deleteSession ( Session  session) throws AdapterException

Deletes a Session.

Session objects are deleted when the routing service sessions that contain them are disabled.

Parameters
session<<in>> Session to be deleted.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.createSession
StreamReader createStreamReader ( Session  session,
StreamInfo  streamInfo,
Properties  properties,
StreamReaderListener  listener 
) throws AdapterException

Creates a StreamReader.

A StreamReader provides a way to read samples of a specific type from a data domain.

In the XML configuration file, StreamReaders are associated with the tag <input> within <route> or <auto_route>.

This method is called when the route is enabled and the 'creation mode' condition associated with the route's input becomes true.

The Java implementation of this method can return null if the adapter is not used to read data.

Parameters
session<<in>> Session associated with the StreamReader. This parameter is null if Sessions are not used by the adapter.
streamInfo<<in>> Name of the stream and type representation.
properties<<in>> Configuration properties for the StreamReader.
listener<<in>> The listener of the StreamReader used to notify the routing service when new data is available.
Returns
New StreamReader if successful.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.deleteStreamReader
void deleteStreamReader ( StreamReader  streamReader) throws AdapterException

Deletes a StreamReader.

A StreamReader object is deleted when the route or domain route that contains it is disabled, when the 'creation mode' condition associated with the route's input becomes false or when RTI Routing Service is closed.

Parameters
streamReader<<in>> StreamReader to be deleted.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.createStreamReader
StreamWriter createStreamWriter ( Session  session,
StreamInfo  streamInfo,
Properties  properties 
) throws AdapterException

Creates a StreamWriter.

A StreamWriter provides a way to write samples of a specific type in a data domain.

In the XML configuration file, StreamWriters are associated with the tag <output> within <route> or <auto_route>.

This method is called when the route is enabled and the 'creation mode' condition associated with the route's output becomes true.

The Java implementation of this method can return null if the adapter is not used to write data.

Parameters
session<<in>> Session associated with the StreamWriter. This parameter is null if Sessions are not used by the adapter.
streamInfo<<in>> Name of the stream and type representation.
properties<<in>> Configuration properties for the StreamWriter.
Returns
New StreamWriter if successful.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.deleteStreamWriter
void deleteStreamWriter ( StreamWriter  streamWriter) throws AdapterException

Deletes a StreamWriter.

A StreamWriter object is deleted when the route or domain route that contains it is disabled, when the 'creation mode' condition associated with the route's output becomes false or when RTI Routing Service is closed.

Parameters
streamWriter<<in>> StreamWriter to be deleted.
Exceptions
AdapterException- if an error occurs.
See Also
com.rti.routingservice.adapter.Connection.createStreamWriter
Properties getAttributes ( ) throws AdapterException

[Not supported] Returns the Connection attributes.

The set of connection attributes can include values for the following keys:

Key Description Default value
com.rti.routingservice.adapter.type_representation_kind Type representation kind used by the Connection RTI Connext TypeCode ("0")
com.rti.routingservice.adapter.data_representation_kind Data representation kind used by the Connection RTI Connext DynamicData ("0")
Returns
The Connection attributes if successful.
Exceptions
AdapterException- if an error occurs.

RTI Routing Service Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc