Public Member Functions | Public Attributes | List of all members
SimpleTestPublisher Class Reference
Inheritance diagram for SimpleTestPublisher:
Inheritance graph
[legend]

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)
 

Detailed Description

Simple test class to test the internals of the Publisher interface

Definition at line 26 of file publisher_test.cpp.

Constructor & Destructor Documentation

SimpleTestPublisher::SimpleTestPublisher ( )
inline

Definition at line 30 of file publisher_test.cpp.

SimpleTestPublisher::~SimpleTestPublisher ( )
overridedefault

Member Function Documentation

Aws::DataFlow::UploadStatus SimpleTestPublisher::publishData ( std::string &  data)
inlineoverridevirtual

Actual publishing mechanism implemented by the agent.

Parameters
data
Returns
the Aws::DataFlow::UploadStatus resulting from the implemented attempt

Implements Publisher< std::string >.

Definition at line 33 of file publisher_test.cpp.

void SimpleTestPublisher::setShouldSucceed ( bool  nv)
inline

Definition at line 39 of file publisher_test.cpp.

Member Data Documentation

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.


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


dataflow_lite
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:22