Apache Mesos
Public Member Functions | List of all members
mesos::internal::master::allocator::Sorter Class Referenceabstract

#include <sorter.hpp>

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

Public Member Functions

 Sorter ()=default
 
 Sorter (const process::UPID &allocator, const std::string &metricsPrefix)
 
virtual ~Sorter ()=default
 
virtual void initialize (const Option< std::set< std::string >> &fairnessExcludeResourceNames)=0
 
virtual void add (const std::string &client)=0
 
virtual void remove (const std::string &client)=0
 
virtual void activate (const std::string &client)=0
 
virtual void deactivate (const std::string &client)=0
 
virtual void updateWeight (const std::string &path, double weight)=0
 
virtual void allocated (const std::string &client, const SlaveID &slaveId, const Resources &resources)=0
 
virtual void update (const std::string &client, const SlaveID &slaveId, const Resources &oldAllocation, const Resources &newAllocation)=0
 
virtual void unallocated (const std::string &client, const SlaveID &slaveId, const Resources &resources)=0
 
virtual const hashmap< SlaveID, Resources > & allocation (const std::string &client) const =0
 
virtual const ResourcesallocationScalarQuantities (const std::string &client) const =0
 
virtual hashmap< std::string, Resourcesallocation (const SlaveID &slaveId) const =0
 
virtual Resources allocation (const std::string &client, const SlaveID &slaveId) const =0
 
virtual const ResourcestotalScalarQuantities () const =0
 
virtual void add (const SlaveID &slaveId, const Resources &resources)=0
 
virtual void remove (const SlaveID &slaveId, const Resources &resources)=0
 
virtual std::vector< std::string > sort ()=0
 
virtual bool contains (const std::string &client) const =0
 
virtual size_t count () const =0
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::Sorter::Sorter ( )
default
mesos::internal::master::allocator::Sorter::Sorter ( const process::UPID allocator,
const std::string &  metricsPrefix 
)
inlineexplicit
virtual mesos::internal::master::allocator::Sorter::~Sorter ( )
virtualdefault

Member Function Documentation

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

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