RSB
0.7.0
|
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. | |
void | setName (const std::string &name) |
Sets the name of the implementation to be selected. | |
rsc::runtime::Properties | getOptions () const |
Returns the options for the strategy. | |
rsc::runtime::Properties & | mutableOptions () |
Returns the options for the strategy. | |
void | setOptions (const rsc::runtime::Properties &options) |
Sets the options for the strategy. | |
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 142 of file ParticipantConfig.cpp.
string rsb::ParticipantConfig::EventProcessingStrategy::getName | ( | ) | const |
Returns the name of the implementation to be selected.
Definition at line 146 of file ParticipantConfig.cpp.
Referenced by rsb::eventprocessing::PushInRouteConfigurator::createEventReceivingStrategy().
Properties rsb::ParticipantConfig::EventProcessingStrategy::getOptions | ( | ) | const |
Returns the options for the strategy.
Definition at line 154 of file ParticipantConfig.cpp.
References rsb::ParticipantConfig::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 166 of file ParticipantConfig.cpp.
References rsb::ParticipantConfig::options.
Referenced by rsb::ParticipantConfig::handleOption().
rsc::runtime::Properties & rsb::ParticipantConfig::EventProcessingStrategy::mutableOptions | ( | ) |
Returns the options for the strategy.
Definition at line 158 of file ParticipantConfig.cpp.
References rsb::ParticipantConfig::options.
void rsb::ParticipantConfig::EventProcessingStrategy::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 176 of file ParticipantConfig.cpp.
References rsb::ParticipantConfig::options.
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 150 of file ParticipantConfig.cpp.
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 162 of file ParticipantConfig.cpp.
References rsb::ParticipantConfig::options.
|
private |
Definition at line 195 of file ParticipantConfig.h.
|
private |
Definition at line 196 of file ParticipantConfig.h.