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)
 
virtual ~DRFSorter ()
 
virtual void initialize (const Option< std::set< std::string >> &fairnessExcludeResourceNames)
 
virtual void add (const std::string &clientPath)
 
virtual void remove (const std::string &clientPath)
 
virtual void activate (const std::string &clientPath)
 
virtual void deactivate (const std::string &clientPath)
 
virtual void updateWeight (const std::string &path, double weight)
 
virtual void allocated (const std::string &clientPath, const SlaveID &slaveId, const Resources &resources)
 
virtual void update (const std::string &clientPath, const SlaveID &slaveId, const Resources &oldAllocation, const Resources &newAllocation)
 
virtual void unallocated (const std::string &clientPath, const SlaveID &slaveId, const Resources &resources)
 
virtual const hashmap< SlaveID, Resources > & allocation (const std::string &clientPath) const
 
virtual const ResourcesallocationScalarQuantities (const std::string &clientPath) const
 
virtual hashmap< std::string, Resourcesallocation (const SlaveID &slaveId) const
 
virtual Resources allocation (const std::string &clientPath, const SlaveID &slaveId) const
 
virtual const ResourcestotalScalarQuantities () const
 
virtual void add (const SlaveID &slaveId, const Resources &resources)
 
virtual void remove (const SlaveID &slaveId, const Resources &resources)
 
virtual std::vector< std::string > sort ()
 
virtual bool contains (const std::string &clientPath) const
 
virtual size_t count () const
 
- 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
virtual mesos::internal::master::allocator::DRFSorter::~DRFSorter ( )
virtual

Member Function Documentation

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

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