17 #ifndef __SLAVE_QOS_CONTROLLERS_LOAD_HPP__ 18 #define __SLAVE_QOS_CONTROLLERS_LOAD_HPP__ 36 class LoadQoSControllerProcess;
54 : loadThreshold5Min(_loadThreshold5Min),
55 loadThreshold15Min(_loadThreshold15Min),
56 loadAverage(_loadAverage) {}
69 const lambda::function<Try<os::Load>()> loadAverage;
77 #endif // __SLAVE_QOS_CONTROLLERS_LOAD_HPP__
process::Future< std::list< mesos::slave::QoSCorrection > > corrections() override
Try< Nothing > initialize(const lambda::function< process::Future< ResourceUsage >()> &usage) override
~LoadQoSController() override
Try< Load > loadavg()
Definition: os.hpp:280
Try< ResourceStatistics > usage(pid_t pid, bool mem=true, bool cpus=true)
Definition: attributes.hpp:24
LoadQoSController(const Option< double > &_loadThreshold5Min, const Option< double > &_loadThreshold15Min, const lambda::function< Try< os::Load >()> &_loadAverage=[](){return os::loadavg();})
Definition: load.hpp:49
Definition: executor.hpp:48
Definition: qos_controller.hpp:44
Definition: future.hpp:58