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

#include <hierarchical.hpp>

Public Member Functions

 RoleTree ()
 
 RoleTree (Metrics *metrics)
 
 ~RoleTree ()
 
Option< const Role * > get (const std::string &role) const
 
const hashmap< std::string, Role > & roles () const
 
const Roleroot () const
 
void trackReservations (const Resources &resources)
 
void untrackReservations (const Resources &resources)
 
void trackAllocated (const Resources &resources)
 
void untrackAllocated (const Resources &resources)
 
void trackFramework (const FrameworkID &frameworkId, const std::string &role)
 
void untrackFramework (const FrameworkID &frameworkId, const std::string &role)
 
void updateQuota (const std::string &role, const Quota &quota)
 
void updateWeight (const std::string &role, double weight)
 
void trackOfferedOrAllocated (const Resources &resources)
 
void untrackOfferedOrAllocated (const Resources &resources)
 
std::string toJSON () const
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::internal::RoleTree::RoleTree ( )
mesos::internal::master::allocator::internal::RoleTree::RoleTree ( Metrics metrics)
mesos::internal::master::allocator::internal::RoleTree::~RoleTree ( )

Member Function Documentation

Option<const Role*> mesos::internal::master::allocator::internal::RoleTree::get ( const std::string &  role) const
const hashmap<std::string, Role>& mesos::internal::master::allocator::internal::RoleTree::roles ( ) const
inline
const Role* mesos::internal::master::allocator::internal::RoleTree::root ( ) const
inline
std::string mesos::internal::master::allocator::internal::RoleTree::toJSON ( ) const
void mesos::internal::master::allocator::internal::RoleTree::trackAllocated ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::trackFramework ( const FrameworkID &  frameworkId,
const std::string &  role 
)
void mesos::internal::master::allocator::internal::RoleTree::trackOfferedOrAllocated ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::trackReservations ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::untrackAllocated ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::untrackFramework ( const FrameworkID &  frameworkId,
const std::string &  role 
)
void mesos::internal::master::allocator::internal::RoleTree::untrackOfferedOrAllocated ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::untrackReservations ( const Resources resources)
void mesos::internal::master::allocator::internal::RoleTree::updateQuota ( const std::string &  role,
const Quota quota 
)
void mesos::internal::master::allocator::internal::RoleTree::updateWeight ( const std::string &  role,
double  weight 
)

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