17 #ifndef __MESOS_V1_RESOURCE_PROVIDER_HPP__ 18 #define __MESOS_V1_RESOURCE_PROVIDER_HPP__ 40 template <
typename Call,
typename Event>
48 namespace resource_provider {
50 typedef ::mesos::internal::HttpConnectionProcess<Call, Event>
DriverProcess;
81 const std::function<
void(
void)>& connected,
82 const std::function<
void(
void)>& disconnected,
83 const std::function<
void(
const std::queue<Event>&)>& received,
103 #endif // __MESOS_V1_RESOURCE_PROVIDER_HPP__
ContentType
Definition: http.hpp:43
mesos::v1::scheduler::Call Call
Definition: mesos.hpp:2851
HTTP connection handler.
Definition: resource_provider.hpp:41
Definition: detector.hpp:26
::mesos::internal::HttpConnectionProcess< Call, Event > DriverProcess
Definition: resource_provider.hpp:50
Try< Nothing > start(const std::string &name)
Starts the slice with the given name (via 'systemctl start <name>').
Resource provider driver.
Definition: resource_provider.hpp:56
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
Definition: attributes.hpp:24
Future< size_t > send(const int_fd &fd, const void *buf, size_t size)