Implementation of content loader that connects to Content Manager in Kanzi Connect server. More...
#include <default_content_loader.hpp>
Public Member Functions | |
| bool | connectUsingUnreliableBearer () |
| Determines whether this content loader will (eventually) connect using unreliable bearer. More... | |
| DefaultContentLoader (ClientSharedPtr client) | |
| Constructor. More... | |
| InterfaceDomain * | getDomain () const |
| Return access to server interfaces. More... | |
| shared_ptr< p2p::RoutingRules::Endpoint > | getP2PEndpoint () |
| Retrieve associated P2P endpoint. More... | |
| string | getUri () const |
| const string & | runtimeSubscribedToService () const |
| const string & | runtimeSubscriptionWaitsService () const |
| void | setP2PEndpoint (shared_ptr< p2p::RoutingRules::Endpoint > endpoint) |
| void | stopBecauseServiceVanished () |
| Stop because the bound service vanished. More... | |
| virtual | ~DefaultContentLoader () KZ_OVERRIDE |
| Destructor. More... | |
| virtual void | start (ContentQueryArgumentsSharedPtr args) KZ_OVERRIDE |
| virtual void | startRuntime (const string uri, int credits, int creditReturnInterval) KZ_OVERRIDE |
| Starts runtime loading of data from a specific address. More... | |
| virtual void | stop () KZ_OVERRIDE |
| Function to stop / cancel the tracking process. More... | |
Public Member Functions inherited from kanzi::connect::ContentLoader | |
| void | addObserver (Observer *observer) |
| Subscribe to content notification callbacks. More... | |
| ContentLoader () | |
| Constructor. More... | |
| void | removeObserver (Observer *observer) |
| Unsubscribe from content notification callbacks. More... | |
| virtual | ~ContentLoader ()=default |
| dtor More... | |
Protected Member Functions | |
| void | startRuntimeSubscription (const string &uri) |
| void | startSubscription (ContentQueryArgumentsSharedPtr args) |
| void | stopSubscription () |
Protected Member Functions inherited from kanzi::connect::ContentLoader | |
| void | notifyContentInvalidated () |
| Invoke observer callback when previously loaded content is invalidated. More... | |
| void | notifyContentLoaded (ContentResult *result) |
| Invoke observer callback when new content result is received. More... | |
| void | notifyRuntimeDataUpdateReceived (const string &uri, const string &stream) |
Implementation of content loader that connects to Content Manager in Kanzi Connect server.
| kanzi::connect::DefaultContentLoader::DefaultContentLoader | ( | ClientSharedPtr | client | ) |
Constructor.
| client | Access to server, message dispatcher and task queue |
|
virtual |
Destructor.
| bool kanzi::connect::DefaultContentLoader::connectUsingUnreliableBearer | ( | ) |
Determines whether this content loader will (eventually) connect using unreliable bearer.
| InterfaceDomain* kanzi::connect::DefaultContentLoader::getDomain | ( | ) | const |
Return access to server interfaces.
|
inline |
Retrieve associated P2P endpoint.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements kanzi::connect::ContentLoader.
|
virtual |
Starts runtime loading of data from a specific address.
| uri | the uri where from to load. |
| credits | total amount of transfer credits. |
| creditReturnInterval | after how many received packets credits are returned to sender. |
Implements kanzi::connect::ContentLoader.
|
protected |
|
protected |
|
virtual |
Function to stop / cancel the tracking process.
Implements kanzi::connect::ContentLoader.
| void kanzi::connect::DefaultContentLoader::stopBecauseServiceVanished | ( | ) |
Stop because the bound service vanished.
|
protected |