1 #ifndef UMPS_PROXY_SERVICES_COMMAND_REPLIER_PROCESS_HPP
2 #define UMPS_PROXY_SERVICES_COMMAND_REPLIER_PROCESS_HPP
6 #include "umps/modules/process.hpp"
9 namespace Services::ConnectionInformation
21 namespace MessageFormats
25 namespace ProxyServices::Command
32 namespace UMPS::ProxyServices::Command
52 std::shared_ptr<UMPS::Logging::ILog> &logger);
67 [[nodiscard]] std::
string getName() const noexcept override;
77 [[nodiscard]]
bool isRunning() const noexcept override;
95 class ReplierProcessImpl;
96 std::unique_ptr<ReplierProcessImpl> pImpl;
114 createReplierProcess(const UMPS::Services::ConnectionInformation::
Requestor &requestor,
116 const std::function<std::unique_ptr<UMPS::MessageFormats::IMessage>
117 (const std::
string &messageType, const
void *data,
size_t length)> &callback,
118 const std::
string &iniFile,
119 const std::
string §ion = "ModuleRegistry",
120 std::shared_ptr<UMPS::Messaging::Context> context =
nullptr,
121 std::shared_ptr<UMPS::Logging::ILog> logger =
nullptr);
A module is typically comprised of multiple processes. This defines the essential qualities that cons...
Definition: process.hpp:13
Defines the module properties.
Definition: moduleDetails.hpp:12
Defines the options for the thread managing remote activity to respond.
Definition: replierOptions.hpp:34
Definition: replierProcess.hpp:39
bool isRunning() const noexcept override
ReplierProcess(std::shared_ptr< UMPS::Logging::ILog > &logger)
Constructor with a given logger.
std::string getName() const noexcept override
ReplierProcess(std::shared_ptr< UMPS::Messaging::Context > &context, std::shared_ptr< UMPS::Logging::ILog > &logger)
Constructor with a given logger and context.
void initialize(const ReplierOptions &options)
Initializes the replier process.
bool isInitialized() const noexcept
ReplierProcess()
Constructor.
void start() override
Starts the replier process.
ReplierProcess(std::shared_ptr< UMPS::Messaging::Context > &context)
Constructor with a given context.
void stop() override
Stops the replier process. This will send a shutdown message to the command module replier thread.
This class allows the user to interact with programs running remotely i.e., - on a different machine....
Definition: requestor.hpp:38