Apache Mesos
Classes | Public Member Functions | List of all members
mesos::internal::master::allocator::DRFSorter Class Reference

#include <sorter.hpp>

Inheritance diagram for mesos::internal::master::allocator::DRFSorter:
mesos::internal::master::allocator::Sorter

Classes

struct  Node
 

Public Member Functions

 DRFSorter ()
 
 DRFSorter (const process::UPID &allocator, const std::string &metricsPrefix)
 
 ~DRFSorter () override
 
void initialize (const Option< std::set< std::string >> &fairnessExcludeResourceNames) override
 
void add (const std::string &clientPath) override
 
void remove (const std::string &clientPath) override
 
void activate (const std::string &clientPath) override
 
void deactivate (const std::string &clientPath) override
 
void updateWeight (const std::string &path, double weight) override
 
void allocated (const std::string &clientPath, const SlaveID &slaveId, const Resources &resources) override
 
void update (const std::string &clientPath, const SlaveID &slaveId, const Resources &oldAllocation, const Resources &newAllocation) override
 
void unallocated (const std::string &clientPath, const SlaveID &slaveId, const Resources &resources) override
 
const hashmap< SlaveID, Resources > & allocation (const std::string &clientPath) const override
 
const ResourceQuantitiesallocationScalarQuantities (const std::string &clientPath) const override
 
const ResourceQuantitiesallocationScalarQuantities () const override
 
Resources allocation (const std::string &clientPath, const SlaveID &slaveId) const override
 
void addSlave (const SlaveID &slaveId, const ResourceQuantities &scalarQuantities) override
 
void removeSlave (const SlaveID &slaveId) override
 
std::vector< std::string > sort () override
 
bool contains (const std::string &clientPath) const override
 
size_t count () const override
 
- Public Member Functions inherited from mesos::internal::master::allocator::Sorter
 Sorter ()=default
 
 Sorter (const process::UPID &allocator, const std::string &metricsPrefix)
 
virtual ~Sorter ()=default
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::DRFSorter::DRFSorter ( )
mesos::internal::master::allocator::DRFSorter::DRFSorter ( const process::UPID allocator,
const std::string &  metricsPrefix 
)
explicit
mesos::internal::master::allocator::DRFSorter::~DRFSorter ( )
override

Member Function Documentation

void mesos::internal::master::allocator::DRFSorter::activate ( const std::string &  clientPath)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::add ( const std::string &  clientPath)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::addSlave ( const SlaveID &  slaveId,
const ResourceQuantities scalarQuantities 
)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::allocated ( const std::string &  clientPath,
const SlaveID &  slaveId,
const Resources resources 
)
overridevirtual
const hashmap<SlaveID, Resources>& mesos::internal::master::allocator::DRFSorter::allocation ( const std::string &  clientPath) const
overridevirtual
Resources mesos::internal::master::allocator::DRFSorter::allocation ( const std::string &  clientPath,
const SlaveID &  slaveId 
) const
overridevirtual
const ResourceQuantities& mesos::internal::master::allocator::DRFSorter::allocationScalarQuantities ( const std::string &  clientPath) const
overridevirtual
const ResourceQuantities& mesos::internal::master::allocator::DRFSorter::allocationScalarQuantities ( ) const
overridevirtual
bool mesos::internal::master::allocator::DRFSorter::contains ( const std::string &  clientPath) const
overridevirtual
size_t mesos::internal::master::allocator::DRFSorter::count ( ) const
overridevirtual
void mesos::internal::master::allocator::DRFSorter::deactivate ( const std::string &  clientPath)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::initialize ( const Option< std::set< std::string >> &  fairnessExcludeResourceNames)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::remove ( const std::string &  clientPath)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::removeSlave ( const SlaveID &  slaveId)
overridevirtual
std::vector<std::string> mesos::internal::master::allocator::DRFSorter::sort ( )
overridevirtual
void mesos::internal::master::allocator::DRFSorter::unallocated ( const std::string &  clientPath,
const SlaveID &  slaveId,
const Resources resources 
)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::update ( const std::string &  clientPath,
const SlaveID &  slaveId,
const Resources oldAllocation,
const Resources newAllocation 
)
overridevirtual
void mesos::internal::master::allocator::DRFSorter::updateWeight ( const std::string &  path,
double  weight 
)
overridevirtual

The documentation for this class was generated from the following file: