Resource provider driver.
More...
#include <resource_provider.hpp>
Resource provider driver.
mesos::v1::resource_provider::Driver::Driver |
( |
process::Owned< mesos::internal::EndpointDetector > |
detector, |
|
|
ContentType |
contentType, |
|
|
const std::function< void(void)> & |
connected, |
|
|
const std::function< void(void)> & |
disconnected, |
|
|
const std::function< void(const std::queue< Event > &)> & |
received, |
|
|
const Option< std::string > & |
token |
|
) |
| |
Construct a Driver.
Expects three callbacks, connected
, disconnected
, and received
which will get invoked serially when it's determined that we've connected (i.e. established TCP connection), disconnected (i.e, connection is broken), or received events from the resource provider manager. Note that we drop events while disconnected.
- Parameters
-
url | the URL where the resource provider API is served. |
contentType | the content type expected by this driver. |
connected | a callback which will be invoked when the driver is connected. |
disconnected | a callback which will be invoked when the driver is disconnected. |
received | a callback which will be invoked when the driver receives resource provider Events. |
token | the token that will be used for authentication. |
mesos::v1::resource_provider::Driver::~Driver |
( |
| ) |
|
mesos::v1::resource_provider::Driver::Driver |
( |
const Driver & |
other | ) |
|
|
delete |
Driver& mesos::v1::resource_provider::Driver::operator= |
( |
const Driver & |
other | ) |
|
|
delete |
void mesos::v1::resource_provider::Driver::start |
( |
| ) |
const |
The documentation for this class was generated from the following file: