Public Member Functions | |
Aws::DataFlow::UploadStatus | publishData (std::string &data) override |
void | setShouldSucceed (bool nv) |
SimpleTestPublisher () | |
~SimpleTestPublisher () override=default | |
Public Member Functions inherited from Publisher< std::string > | |
virtual void | addPublisherStateListener (const std::function< void(const PublisherState &)> &listener) |
Aws::DataFlow::UploadStatus | attemptPublish (std::string &data) override |
bool | canPublish () |
std::chrono::milliseconds | getLastPublishDuration () |
int | getPublishAttempts () |
PublisherState | getPublisherState () |
int | getPublishSuccesses () |
float | getPublishSuccessPercentage () |
Publisher () | |
bool | shutdown () override |
~Publisher () override=default | |
Public Member Functions inherited from Service | |
ServiceState | getState () |
virtual std::string | getStatusString () |
Service () | |
virtual bool | start () |
virtual | ~Service ()=default |
Public Attributes | |
std::string | last_data |
bool | should_succeed_ |
Additional Inherited Members | |
Protected Member Functions inherited from Service | |
void | setState (ServiceState new_state) |
Simple test class to test the internals of the Publisher interface
Definition at line 26 of file publisher_test.cpp.
|
inline |
Definition at line 30 of file publisher_test.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Actual publishing mechanism implemented by the agent.
data |
Implements Publisher< std::string >.
Definition at line 33 of file publisher_test.cpp.
|
inline |
Definition at line 39 of file publisher_test.cpp.
std::string SimpleTestPublisher::last_data |
Definition at line 43 of file publisher_test.cpp.
bool SimpleTestPublisher::should_succeed_ |
Definition at line 44 of file publisher_test.cpp.