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

This event sending strategy just passes incoming events to its associated rsb::transport::OutConnector s without modification, queueing or anything else. More...

#include <DirectEventSendingStrategy.h>

Inheritance diagram for rsb::eventprocessing::DirectEventSendingStrategy:
Inheritance graph
Collaboration diagram for rsb::eventprocessing::DirectEventSendingStrategy:
Collaboration graph

Public Member Functions

void printContents (std::ostream &stream) const
void addConnector (transport::OutConnectorPtr connector)
 Add connector to the list of connectors to which this strategy should deliver events.
void removeConnector (transport::OutConnectorPtr connector)
 Remove connector from the list of connectors to which this strategy should deliver events.
void process (EventPtr e)
 Deliver event to all rsb::transport::OutConnector objects associated to this strategy.
- Public Member Functions inherited from rsb::eventprocessing::EventSendingStrategy
virtual ~EventSendingStrategy ()

Static Public Member Functions

static EventSendingStrategycreate (const rsc::runtime::Properties &props)

Private Types

typedef std::list
< transport::OutConnectorPtr
ConnectorList

Private Attributes

ConnectorList connectors

Detailed Description

This event sending strategy just passes incoming events to its associated rsb::transport::OutConnector s without modification, queueing or anything else.

Author
jmoringe

Definition at line 45 of file DirectEventSendingStrategy.h.

Member Typedef Documentation

Member Function Documentation

void rsb::eventprocessing::DirectEventSendingStrategy::addConnector ( transport::OutConnectorPtr  connector)
virtual

Add connector to the list of connectors to which this strategy should deliver events.

Parameters
connectorThe new rsb::transport::OutConnector .

Implements rsb::eventprocessing::EventSendingStrategy.

Definition at line 48 of file DirectEventSendingStrategy.cpp.

EventSendingStrategy * rsb::eventprocessing::DirectEventSendingStrategy::create ( const rsc::runtime::Properties &  props)
static

Definition at line 40 of file DirectEventSendingStrategy.cpp.

Referenced by rsb::eventprocessing::registerDefaultEventProcessingStrategies().

Here is the caller graph for this function:

void rsb::eventprocessing::DirectEventSendingStrategy::printContents ( std::ostream &  stream) const

Definition at line 44 of file DirectEventSendingStrategy.cpp.

void rsb::eventprocessing::DirectEventSendingStrategy::process ( EventPtr  event)
virtual

Deliver event to all rsb::transport::OutConnector objects associated to this strategy.

Parameters
eventAn rsb::Event that should be delivered to the connectors.

Implements rsb::eventprocessing::EventSendingStrategy.

Definition at line 56 of file DirectEventSendingStrategy.cpp.

void rsb::eventprocessing::DirectEventSendingStrategy::removeConnector ( transport::OutConnectorPtr  connector)
virtual

Remove connector from the list of connectors to which this strategy should deliver events.

Parameters
connectorThe rsb::transport::OutConnector that should be removed.

Implements rsb::eventprocessing::EventSendingStrategy.

Definition at line 52 of file DirectEventSendingStrategy.cpp.

Member Data Documentation

ConnectorList rsb::eventprocessing::DirectEventSendingStrategy::connectors
private

Definition at line 58 of file DirectEventSendingStrategy.h.


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