RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::ParticipantConfig::EventProcessingStrategy Class Reference

Instances of this class describe the selection and configuration of an event processing strategy. More...

#include <ParticipantConfig.h>

Inheritance diagram for rsb::ParticipantConfig::EventProcessingStrategy:
Inheritance graph
Collaboration diagram for rsb::ParticipantConfig::EventProcessingStrategy:
Collaboration graph

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

Detailed Description

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.

Author
jmoringe

Definition at line 148 of file ParticipantConfig.h.

Constructor & Destructor Documentation

rsb::ParticipantConfig::EventProcessingStrategy::EventProcessingStrategy ( const std::string &  name)

Definition at line 142 of file ParticipantConfig.cpp.

Member Function Documentation

string rsb::ParticipantConfig::EventProcessingStrategy::getName ( ) const

Returns the name of the implementation to be selected.

Returns
The name of the processing strategy implementation that should be used.

Definition at line 146 of file ParticipantConfig.cpp.

Referenced by rsb::eventprocessing::PushInRouteConfigurator::createEventReceivingStrategy().

Here is the caller graph for this function:

Properties rsb::ParticipantConfig::EventProcessingStrategy::getOptions ( ) const

Returns the options for the strategy.

Returns
copy of options for the strategy

Definition at line 154 of file ParticipantConfig.cpp.

References rsb::ParticipantConfig::options.

Referenced by rsb::eventprocessing::PushInRouteConfigurator::createEventReceivingStrategy().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

rsc::runtime::Properties & rsb::ParticipantConfig::EventProcessingStrategy::mutableOptions ( )

Returns the options for the strategy.

Returns
mutable reference to 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.

Parameters
name- Name of the processing strategy implementation that should be used.

Definition at line 150 of file ParticipantConfig.cpp.

Referenced by rsb::ParticipantConfig::handleOption().

Here is the caller graph for this function:

void rsb::ParticipantConfig::EventProcessingStrategy::setOptions ( const rsc::runtime::Properties &  options)

Sets the options for the strategy.

Parameters
optionsnew options replacing all old ones

Definition at line 162 of file ParticipantConfig.cpp.

References rsb::ParticipantConfig::options.

Member Data Documentation

std::string rsb::ParticipantConfig::EventProcessingStrategy::name
private

Definition at line 195 of file ParticipantConfig.h.

rsc::runtime::Properties rsb::ParticipantConfig::EventProcessingStrategy::options
private

Definition at line 196 of file ParticipantConfig.h.


The documentation for this class was generated from the following files: