RTI Routing Service
Version 5.3.0
|
Connection interface (required). More...
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. | |
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.
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.
properties | <<in>> Configuration properties for the Session. |
AdapterException | - if an error occurs. |
void deleteSession | ( | Session | session | ) | throws AdapterException |
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.
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. |
AdapterException | - if an error occurs. |
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.
streamReader | <<in>> StreamReader to be deleted. |
AdapterException | - if an error occurs. |
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.
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. |
AdapterException | - if an error occurs. |
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.
streamWriter | <<in>> StreamWriter to be deleted. |
AdapterException | - if an error occurs. |
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") |
AdapterException | - if an error occurs. |