RTI Routing Service Version 7.2.0
|
A Connection provides access to a data domain (such as a DDS domain or a JMS network provider). More...
#include <Connection.hpp>
Public Member Functions | |
virtual Session * | create_session (const PropertySet &properties) |
Creates a Session. More... | |
virtual void | delete_session (Session *session) |
Deletes a Session. More... | |
virtual StreamWriter * | create_stream_writer (Session *session, const StreamInfo &stream_info, const PropertySet &properties) |
Creates a StreamWriter. More... | |
virtual void | delete_stream_writer (StreamWriter *stream_writer) |
Deletes a StreamWriter. More... | |
virtual StreamReader * | create_stream_reader (Session *session, const StreamInfo &stream_info, const PropertySet &properties, StreamReaderListener *listener) |
Creates a StreamReader. More... | |
virtual void | delete_stream_reader (StreamReader *stream_reader) |
Deletes a StreamReader. More... | |
virtual DiscoveryStreamReader * | input_stream_discovery_reader () |
Gets the input stream discovery StreamReader. More... | |
virtual DiscoveryStreamReader * | output_stream_discovery_reader () |
Gets the output stream discovery StreamReader. More... | |
virtual | ~Connection () |
Virtual destructor. More... | |
Public Member Functions inherited from rti::routing::UpdatableEntity | |
virtual void | update (const std::map< std::string, std::string > &properties) |
Updates a pluggable entity. More... | |
virtual | ~UpdatableEntity () |
Virtual destructor. More... | |
A Connection provides access to a data domain (such as a DDS domain or a JMS network provider).
In the XML configuration file, Connections are associated with the tag <connection> within a domain route.
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
Creates a Session.
Session objects are created when the associated RTI Routing Service Sessions are enabled. This operation is called once for each service Session and for each Connection within the DomainRoute.
properties | <<in>> Configuration properties for the Session. |
std::exception |
|
inlinevirtual |
|
inlinevirtual |
Creates a StreamWriter.
This method is called for each Route's output when the associated 'creation mode' condition is met. The operation is called on the output Connection as a specified through the 'connection' attribute in the <output> tag.
session | <<in>> Session associated with the StreamWriter. This parameter is nullptr if Sessions are not used by the adapter. |
stream_info | <<in>> Information related to the stream where the StreamWriter sends data. |
properties | <<in>> Configuration properties for the StreamWriter. |
std::exception |
|
inlinevirtual |
Deletes a StreamWriter.
A StreamWriter object is deleted when:
stream_writer | <<in>> StreamWriter to be deleted. |
std::exception |
|
inlinevirtual |
Creates a StreamReader.
This method is called for each Route's input when the associated 'creation mode' condition is met. The operation is called on the input Connection as a specified through the 'connection' attribute in the <output> tag.
session | <<in>> Session associated with the StreamReader. This parameter is nullptr if Sessions are not used by the adapter. |
stream_info | <<in>> Information related to the stream where the StreamReader read data. |
properties | <<in>> Configuration properties for the StreamReader. |
listener | <<in>> The listener for the StreamReader implementation used to notify RTI Routing Service when new data is available. |
std::exception |
|
inlinevirtual |
Deletes a StreamReader.
A StreamReader object is deleted when:
stream_reader | <<in>> StreamReader to be deleted. |
std::exception |
|
inlinevirtual |
Gets the input stream discovery StreamReader.
Returns a DiscoveryStreamReader that is used by RTI Routing Service to discover input streams.
An input stream is a stream from which a StreamReader can read data. Disposed scenarios, where an input stream disappears, are also notified using this DiscoveryStreamReader.
The StreamReaderListener associated with this DiscoveryStreamReader is provided as a parameter to the method AdapterPlugin::create_connection
Implementations may return nullptr if they do not support stream discovery.
std::exception |
|
inlinevirtual |
Gets the output stream discovery StreamReader.
Returns a DiscoveryStreamReader that is used by RTI Routing Service to discover output streams.
An output stream is a stream from which a StreamWrite can write data. Disposed scenarios, where an output stream disappears, are also notified using this DiscoveryStreamReader.
The StreamReaderListener associated with this DiscoveryStreamReader is provided as a parameter to the method AdapterPlugin::create_connection.
Implementations may return nullptr if they do not support stream discovery.
std::exception |