#include <OnixS/CME/MDH/FeedEngine.h>
Public Member Functions | |
| virtual | ~NetFeedEngine ()=default |
| const std::string & | engineId () const noexcept |
| std::string | about () |
| virtual void | info (std::string &)=0 |
| virtual NetFeedLink & | allocate (const NetFeed &)=0 |
| virtual WatchService & | watch ()=0 |
| virtual NetFeedEngineProcessResult | process ()=0 |
Protected Member Functions | |
| NetFeedEngine (const NetFeedEngineSettings &settings=NetFeedEngineSettings{}) | |
| Logger & | logger () const noexcept |
Abstraction for the Feed Engine machinery.
The given abstract class exposes the interface through which instances of the Handler class manipulate feeds.
Definition at line 127 of file FeedEngine.h.
|
virtualdefault |
Finalizes the instance.
|
explicitprotected |
Constructs an engine and generates its identifier.
| settings | Common network feed-engine settings. |
settings must outlive this engine. | std::bad_alloc | If identifier storage allocation fails. |
| std::string about | ( | ) |
Returns information about the actual feed-engine implementation.
|
pure virtual |
Constructs a link for the given feed.
Caller is responsible for releasing the returned instance using the NetFeedLink::release() member.
Implemented in SocketFeedEngine, and SolarflareFeedEngine.
|
inlinenoexcept |
Returns the identifier generated for this engine.
Definition at line 189 of file FeedEngine.h.
|
pure virtual |
Provides information about the actual implementation of the feed engine.
Implemented in SocketFeedEngine, and SolarflareFeedEngine.
|
inlineprotectednoexcept |
Returns the logger selected when this engine was constructed.
Definition at line 184 of file FeedEngine.h.
|
pure virtual |
Carries out pending actions like data retrieval and event dispatching.
The particular implementation of the feed engine concept may have own specific on returned value. Thus, see the documentation for the particular feed engine on the behavior and returned value.
Implemented in SocketFeedEngine, and SolarflareFeedEngine.
|
pure virtual |
A watch service used by the Feed Engine to assign timestamps for received packets and to track heartbeats.
Implemented in SocketFeedEngine, and SolarflareFeedEngine.