RSB
0.16.1
|
Instances of this class describe the selection and configuration of an event processing strategy. More...
#include <ParticipantConfig.h>
Public Member Functions | |
EventProcessingStrategy (const std::string &name) | |
std::string | getName () const |
Returns the name of the implementation to be selected. More... | |
void | setName (const std::string &name) |
Sets the name of the implementation to be selected. More... | |
rsc::runtime::Properties | getOptions () const |
Returns the options for the strategy. More... | |
rsc::runtime::Properties & | mutableOptions () |
Returns the options for the strategy. More... | |
void | setOptions (const rsc::runtime::Properties &options) |
Sets the options for the strategy. More... | |
void | handleOption (const std::vector< std::string > &key, const std::string &value) |
void | printContents (std::ostream &stream) const |
Private Attributes | |
std::string | name |
rsc::runtime::Properties | options |
Instances of this class describe the selection and configuration of an event processing strategy.
This mechanism is applied to select and configure implementations of eventprocessing::EventSendingStrategy and eventprocessing::EventReceivingStrategy.
Definition at line 148 of file ParticipantConfig.h.
rsb::ParticipantConfig::EventProcessingStrategy::EventProcessingStrategy | ( | const std::string & | name | ) |
Definition at line 139 of file ParticipantConfig.cpp.
string rsb::ParticipantConfig::EventProcessingStrategy::getName | ( | ) | const |
Returns the name of the implementation to be selected.
Definition at line 143 of file ParticipantConfig.cpp.
References name.
Referenced by rsb::eventprocessing::PushInRouteConfigurator::createEventReceivingStrategy().
Properties rsb::ParticipantConfig::EventProcessingStrategy::getOptions | ( | ) | const |
Returns the options for the strategy.
Definition at line 151 of file ParticipantConfig.cpp.
References options.
Referenced by rsb::eventprocessing::PushInRouteConfigurator::createEventReceivingStrategy().
void rsb::ParticipantConfig::EventProcessingStrategy::handleOption | ( | const std::vector< std::string > & | key, |
const std::string & | value | ||
) |
Definition at line 163 of file ParticipantConfig.cpp.
References options.
Referenced by rsb::ParticipantConfig::handleOption().
rsc::runtime::Properties & rsb::ParticipantConfig::EventProcessingStrategy::mutableOptions | ( | ) |
Returns the options for the strategy.
Definition at line 155 of file ParticipantConfig.cpp.
References options.
void rsb::ParticipantConfig::EventProcessingStrategy::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 173 of file ParticipantConfig.cpp.
void rsb::ParticipantConfig::EventProcessingStrategy::setName | ( | const std::string & | name | ) |
Sets the name of the implementation to be selected.
name | - Name of the processing strategy implementation that should be used. |
Definition at line 147 of file ParticipantConfig.cpp.
References name.
Referenced by rsb::ParticipantConfig::handleOption().
void rsb::ParticipantConfig::EventProcessingStrategy::setOptions | ( | const rsc::runtime::Properties & | options | ) |
Sets the options for the strategy.
options | new options replacing all old ones |
Definition at line 159 of file ParticipantConfig.cpp.
References options.
|
private |
Definition at line 195 of file ParticipantConfig.h.
Referenced by getName(), printContents(), and setName().
|
private |
Definition at line 196 of file ParticipantConfig.h.
Referenced by getOptions(), handleOption(), mutableOptions(), printContents(), and setOptions().