RSB
0.7.0
|
This class implements pull-style event receiving for the Spread transport. More...
#include <InPullConnector.h>
Public Types | |
typedef rsb::transport::ConverterSelectingConnector < std::string > ::ConverterSelectionStrategyPtr | ConverterSelectionStrategyPtr |
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 |
Public Member Functions | |
InPullConnector (ConverterSelectionStrategyPtr converters, const std::string &host=defaultHost(), unsigned int port=defaultPort()) | |
virtual | ~InPullConnector () |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
void | setScope (const Scope &scope) |
Sets the scope this connector will receive events from. | |
void | activate () |
Activates the connector. | |
void | deactivate () |
void | setQualityOfServiceSpecs (const QualityOfServiceSpec &specs) |
Requests new QoS settings for publishing events. | |
EventPtr | raiseEvent (bool block) |
Static Public Member Functions | |
static transport::InPullConnector * | create (const rsc::runtime::Properties &args) |
Private Attributes | |
rsc::logging::LoggerPtr | logger |
bool | active |
SpreadConnectorPtr | connector |
boost::shared_ptr< Scope > | activationScope |
MessageHandler | processor |
This class implements pull-style event receiving for the Spread transport.
Definition at line 50 of file InPullConnector.h.
typedef rsb::transport::ConverterSelectingConnector<std::string>::ConverterSelectionStrategyPtr rsb::spread::InPullConnector::ConverterSelectionStrategyPtr |
Definition at line 52 of file InPullConnector.h.
rsb::spread::InPullConnector::InPullConnector | ( | ConverterSelectionStrategyPtr | converters, |
const std::string & | host = defaultHost() , |
||
unsigned int | port = defaultPort() |
||
) |
Definition at line 51 of file InPullConnector.cpp.
|
virtual |
Reimplemented from rsb::transport::InPullConnector.
Definition at line 60 of file InPullConnector.cpp.
References active, and deactivate().
|
virtual |
Activates the connector.
Settings made between construction and activation via this method must be applied on a call to this method.
Implements rsb::transport::Connector.
Definition at line 75 of file InPullConnector.cpp.
References activationScope, active, connector, and setScope().
|
static |
|
virtual |
Implements rsb::transport::Connector.
Definition at line 87 of file InPullConnector.cpp.
References connector.
Referenced by ~InPullConnector().
string rsb::spread::InPullConnector::getClassName | ( | ) | const |
Definition at line 66 of file InPullConnector.cpp.
void rsb::spread::InPullConnector::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 70 of file InPullConnector.cpp.
|
virtual |
Implements rsb::transport::InPullConnector.
Definition at line 103 of file InPullConnector.cpp.
References connector, rsb::spread::MessageHandler::processMessage(), processor, and rsb::spread::SpreadMessage::REGULAR.
|
virtual |
Requests new QoS settings for publishing events.
Does not influence the receiving part.
specs | QoS specification |
UnsupportedQualityOfServiceException | requirements cannot be met |
Implements rsb::transport::Connector.
Definition at line 91 of file InPullConnector.cpp.
References connector.
|
virtual |
Sets the scope this connector will receive events from.
scope | scope of the connector |
Implements rsb::transport::InConnector.
Definition at line 95 of file InPullConnector.cpp.
References activationScope, active, and connector.
Referenced by activate().
|
private |
Definition at line 78 of file InPullConnector.h.
Referenced by activate(), and setScope().
|
private |
Definition at line 75 of file InPullConnector.h.
Referenced by activate(), printContents(), setScope(), and ~InPullConnector().
|
private |
Definition at line 77 of file InPullConnector.h.
Referenced by activate(), deactivate(), printContents(), raiseEvent(), setQualityOfServiceSpecs(), and setScope().
|
private |
Definition at line 73 of file InPullConnector.h.
|
private |
Definition at line 79 of file InPullConnector.h.
Referenced by raiseEvent().