RSB
0.7.0
|
#include <OutConnector.h>
Public Member Functions | |
OutConnector (ConverterSelectionStrategyPtr converters, const std::string &host=defaultHost(), unsigned int port=defaultPort(), unsigned int maxFragmentSize=100000) | |
virtual | ~OutConnector () |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
void | handle (rsb::EventPtr e) |
Handle event. | |
void | activate () |
Activates the connector. | |
void | deactivate () |
void | setQualityOfServiceSpecs (const QualityOfServiceSpec &specs) |
Requests new QoS settings for publishing events. |
Static Public Member Functions | |
static rsb::transport::OutConnector * | create (const rsc::runtime::Properties &args) |
Private Attributes | |
rsc::logging::LoggerPtr | logger |
bool | active |
SpreadConnectorPtr | connector |
unsigned int | maxFragmentSize |
unsigned int | minDataSpace |
The number of bytes minimally required to successfully serialize the notification with the limited size for each fragment. |
Additional Inherited Members | |
Public Types inherited from rsb::transport::OutConnector | |
typedef boost::shared_ptr < OutConnector > | Ptr |
Public Types inherited from rsb::transport::ConverterSelectingConnector< std::string > | |
typedef converter::Converter < std::string >::Ptr | ConverterPtr |
typedef converter::ConverterSelectionStrategy < std::string >::Ptr | ConverterSelectionStrategyPtr |
Protected Member Functions inherited from rsb::transport::ConverterSelectingConnector< std::string > | |
ConverterSelectingConnector (ConverterSelectionStrategyPtr converters) | |
ConverterPtr | getConverter (const std::string &key) const |
Try to find a suitable converter for key . |
Definition at line 44 of file OutConnector.h.
rsb::spread::OutConnector::OutConnector | ( | ConverterSelectionStrategyPtr | converters, |
const std::string & | host = defaultHost() , |
||
unsigned int | port = defaultPort() , |
||
unsigned int | maxFragmentSize = 100000 |
||
) |
Definition at line 61 of file OutConnector.cpp.
|
virtual |
Reimplemented from rsb::transport::OutConnector.
Definition at line 69 of file OutConnector.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 83 of file OutConnector.cpp.
|
static |
|
virtual |
Implements rsb::transport::Connector.
Definition at line 88 of file OutConnector.cpp.
References active, and connector.
Referenced by ~OutConnector().
string rsb::spread::OutConnector::getClassName | ( | ) | const |
Definition at line 75 of file OutConnector.cpp.
|
virtual |
Handle event.
event | The event that should be handled. |
Implements rsb::eventprocessing::Handler.
Definition at line 97 of file OutConnector.cpp.
References rsb::spread::SpreadMessage::addGroup(), connector, rsb::protocol::fillNotificationHeader(), rsb::protocol::fillNotificationId(), rsb::transport::ConverterSelectingConnector< std::string >::getConverter(), rsb::spread::SpreadMessage::getSize(), maxFragmentSize, minDataSpace, and rsb::spread::SpreadMessage::setQOS().
void rsb::spread::OutConnector::printContents | ( | std::ostream & | stream | ) | const |
Definition at line 79 of file OutConnector.cpp.
|
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 93 of file OutConnector.cpp.
References connector.
|
private |
Definition at line 67 of file OutConnector.h.
Referenced by activate(), deactivate(), printContents(), and ~OutConnector().
|
private |
Definition at line 68 of file OutConnector.h.
Referenced by activate(), deactivate(), handle(), printContents(), and setQualityOfServiceSpecs().
|
private |
Definition at line 66 of file OutConnector.h.
|
private |
Definition at line 69 of file OutConnector.h.
Referenced by handle().
|
private |
The number of bytes minimally required to successfully serialize the notification with the limited size for each fragment.
Definition at line 74 of file OutConnector.h.
Referenced by handle().