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

#include <InPullConnector.h>

Inheritance diagram for rsb::inprocess::InPullConnector:
Inheritance graph
Collaboration diagram for rsb::inprocess::InPullConnector:
Collaboration graph

Public Member Functions

 InPullConnector ()
virtual ~InPullConnector ()
std::string getClassName () const
void setQualityOfServiceSpecs (const QualityOfServiceSpec &specs)
 Requests new QoS settings for publishing events.
void handle (EventPtr event)
 Handle event.
EventPtr raiseEvent (bool block)
- Public Member Functions inherited from rsb::inprocess::InConnector
virtual ~InConnector ()
void printContents (std::ostream &stream) const
virtual void activate ()
 Activates the connector.
virtual void deactivate ()
virtual Scope getScope () const
virtual void setScope (const Scope &scope)
 Sets the scope this connector will receive events from.
- Public Member Functions inherited from rsb::eventprocessing::Handler
virtual ~Handler ()

Static Public Member Functions

static
rsb::transport::InPullConnector
create (const rsc::runtime::Properties &args)

Private Attributes

rsc::logging::LoggerPtr logger
rsc::threading::SynchronizedQueue
< EventPtr
queue

Additional Inherited Members

- Public Types inherited from rsb::transport::InPullConnector
typedef boost::shared_ptr
< InPullConnector
Ptr
- Public Types inherited from rsb::transport::InConnector
typedef boost::shared_ptr
< InConnector
Ptr
- Protected Member Functions inherited from rsb::inprocess::InConnector
 InConnector ()

Detailed Description

Author
jmoringe

Definition at line 47 of file InPullConnector.h.

Constructor & Destructor Documentation

rsb::inprocess::InPullConnector::InPullConnector ( )

Definition at line 41 of file InPullConnector.cpp.

rsb::inprocess::InPullConnector::~InPullConnector ( )
virtual

Reimplemented from rsb::transport::InPullConnector.

Definition at line 51 of file InPullConnector.cpp.

Member Function Documentation

static rsb::transport::InPullConnector* rsb::inprocess::InPullConnector::create ( const rsc::runtime::Properties &  args)
static
string rsb::inprocess::InPullConnector::getClassName ( ) const

Definition at line 54 of file InPullConnector.cpp.

void rsb::inprocess::InPullConnector::handle ( EventPtr  event)
virtual

Handle event.

Parameters
eventThe event that should be handled.

TODO(jmoringe, 2011-11-07): This ensures not overwriting earlier receive timestamp added by different connector. However, thread-safety issue remains.

Implements rsb::eventprocessing::Handler.

Definition at line 61 of file InPullConnector.cpp.

References queue.

EventPtr rsb::inprocess::InPullConnector::raiseEvent ( bool  block)
virtual

Implements rsb::transport::InPullConnector.

Definition at line 73 of file InPullConnector.cpp.

References queue.

void rsb::inprocess::InPullConnector::setQualityOfServiceSpecs ( const QualityOfServiceSpec specs)
virtual

Requests new QoS settings for publishing events.

Does not influence the receiving part.

Parameters
specsQoS specification
Exceptions
UnsupportedQualityOfServiceExceptionrequirements cannot be met

Implements rsb::transport::Connector.

Definition at line 58 of file InPullConnector.cpp.

Member Data Documentation

rsc::logging::LoggerPtr rsb::inprocess::InPullConnector::logger
private

Definition at line 64 of file InPullConnector.h.

rsc::threading::SynchronizedQueue<EventPtr> rsb::inprocess::InPullConnector::queue
private

Definition at line 66 of file InPullConnector.h.

Referenced by handle(), and raiseEvent().


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