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

#include <hierarchical.hpp>

Public Member Functions

 Role (const std::string &name, Role *parent)
 
const ResourceQuantitiesreservationScalarQuantities () const
 
ResourceQuantities offeredOrAllocatedReservedScalarQuantities () const
 
const hashset< FrameworkID > & frameworks () const
 
const Quotaquota () const
 
ResourceQuantities quotaOfferedOrConsumed () const
 
ResourceQuantities quotaConsumed () const
 
double weight () const
 
bool isEmpty () const
 
std::vector< Role * > children () const
 

Public Attributes

const std::string role
 
const std::string basename
 

Friends

class RoleTree
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::internal::Role::Role ( const std::string &  name,
Role parent 
)

Member Function Documentation

std::vector<Role*> mesos::internal::master::allocator::internal::Role::children ( ) const
inline
const hashset<FrameworkID>& mesos::internal::master::allocator::internal::Role::frameworks ( ) const
inline
bool mesos::internal::master::allocator::internal::Role::isEmpty ( ) const
inline
ResourceQuantities mesos::internal::master::allocator::internal::Role::offeredOrAllocatedReservedScalarQuantities ( ) const
inline
const Quota& mesos::internal::master::allocator::internal::Role::quota ( ) const
inline
ResourceQuantities mesos::internal::master::allocator::internal::Role::quotaConsumed ( ) const
inline
ResourceQuantities mesos::internal::master::allocator::internal::Role::quotaOfferedOrConsumed ( ) const
inline
const ResourceQuantities& mesos::internal::master::allocator::internal::Role::reservationScalarQuantities ( ) const
inline
double mesos::internal::master::allocator::internal::Role::weight ( ) const
inline

Friends And Related Function Documentation

friend class RoleTree
friend

Member Data Documentation

const std::string mesos::internal::master::allocator::internal::Role::basename
const std::string mesos::internal::master::allocator::internal::Role::role

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