|
RTI Routing Service Version 7.7.0
|
The RTI Routing Service. More...
#include <Service.hpp>
Inherits dds::core::Reference< RoutingServiceImpl >.
Public Member Functions | |
| Service (const ServiceProperty &property) | |
| Creates a RTI Routing Service instance. More... | |
| template<typename HookFunc > | |
| Service (const ServiceProperty &property, HookFunc &shutdown_hook) | |
| Creates a RTI Routing Service instance. More... | |
| void | start () |
| Starts RTI Routing Service. More... | |
| void | stop () |
| Stops RTI Routing Service. More... | |
| void | attach_adapter_plugin (rti::routing::adapter::AdapterPlugin *adapter_plugin, const std::string &plugin_name) |
| Attaches an Adapter plugin to be used by RTI Routing Service when it is started. More... | |
| void | attach_processor_plugin (rti::routing::processor::ProcessorPlugin *processor_plugin, const std::string &plugin_name) |
| Attaches a Processor plugin to be used by RTI Routing Service when it is started. More... | |
| void | attach_transformation_plugin (rti::routing::transf::TransformationPlugin *transformation_plugin, const std::string &plugin_name) |
| Attaches a Transformation plugin to be used by RTI Routing Service when it is started. More... | |
| CommandReply | execute_command (const CommandRequest &request) |
| Executes an Administration command on this service. More... | |
| CommandReply & | execute_command (CommandReply &reply, const CommandRequest &request) |
| Executes an Administration command on this service. More... | |
Static Public Member Functions | |
| static void | finalize_globals () |
The RTI Routing Service.
|
inlineexplicit |
Creates a RTI Routing Service instance.
| property | <<in>> The property to configure RTI Routing Service instance. |
|
inline |
Creates a RTI Routing Service instance.
A callable shutdown hook can optionally be provided to handle the shutdown command received through remote administration. Upon reception of this command, RTI Routing Service will notify the installed hook.
The following example shows simple implementation of a shutdown hook that sets a boolean flag to true when invoked:
| [in] | property | The property to configure RTI Routing Service instance. |
| [in] | shutdown_hook | Callable object to handle the shutdown command. The expected type is a void operator()() (C++11 equivalent is std::function<void()>) |
|
inline |
|
inline |
Stops RTI Routing Service.
This operation will bloc the instance is fully stopped.
|
inline |
Attaches an Adapter plugin to be used by RTI Routing Service when it is started.
By using this function an adapter can be statically compiled, created in your application and have the service load it, instead of registering a shared library and a create function in the configuration.
The name passed in this function is the name that has to be used in the configuration to instantiate connections from the plugin.
Example:
And our configuration would look like this:
This function can be called as many times as desired to attach several plugins.
| adapter_plugin | <<in>> The adapter plugin object to be attached. The object shall remain alive during the execution of the service. Once the plugin is attached, the memory is owned by RTI Routing Service and will delete it upon service stop. |
| plugin_name | <<in>> The name used for this plugin in the <connection> tag in the configuration. |
|
inline |
Attaches a Processor plugin to be used by RTI Routing Service when it is started.
|
inline |
Attaches a Transformation plugin to be used by RTI Routing Service when it is started.
|
inline |
Executes an Administration command on this service.
This operation directly executes the specified request in this service as if it was directly received from an administration requester.
The request can represent any of the available administration operations as documented in the Administration chapter in the user's manual. This operation gives you an alternative way to control the service using the same remote administration interface but allowing you to call the operation directly.
This operation can also throw an exception if an internal error occurs.
Example:
| [in] | request | Representation of the command to be executed |
|
inline |
Executes an Administration command on this service.
Similar to execute_command(const CommandRequest& request) except the caller provides the CommandReply object.
| [out] | reply | Representation of the reply containing the result of the operation |
| [in] | request | Representation of the command to be executed |
|
inlinestatic |
[DEPRECATED] Calling this function at the end of the application is no longer necessary. It will be removed in future versions.
References rti::routing::Logger::warn().