Apache Mesos
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
mesos::internal::master::allocator::RandomSorter::Node Struct Reference

#include <sorter.hpp>

Classes

struct  Allocation
 

Public Types

enum  Kind { ACTIVE_LEAF, INACTIVE_LEAF, INTERNAL }
 

Public Member Functions

 Node (const std::string &_name, Kind _kind, Node *_parent)
 
 ~Node ()
 
const std::string & clientPath () const
 
bool isLeaf () const
 
void removeChild (const Node *child)
 
void addChild (Node *child)
 

Public Attributes

std::string name
 
std::string path
 
Option< double > weight
 
Kind kind
 
Nodeparent
 
std::vector< Node * > children
 
struct mesos::internal::master::allocator::RandomSorter::Node::Allocation allocation
 

Member Enumeration Documentation

Enumerator
ACTIVE_LEAF 
INACTIVE_LEAF 
INTERNAL 

Constructor & Destructor Documentation

mesos::internal::master::allocator::RandomSorter::Node::Node ( const std::string &  _name,
Kind  _kind,
Node _parent 
)
inline
mesos::internal::master::allocator::RandomSorter::Node::~Node ( )
inline

Member Function Documentation

void mesos::internal::master::allocator::RandomSorter::Node::addChild ( Node child)
inline
const std::string& mesos::internal::master::allocator::RandomSorter::Node::clientPath ( ) const
inline
bool mesos::internal::master::allocator::RandomSorter::Node::isLeaf ( ) const
inline
void mesos::internal::master::allocator::RandomSorter::Node::removeChild ( const Node child)
inline

Member Data Documentation

struct mesos::internal::master::allocator::RandomSorter::Node::Allocation mesos::internal::master::allocator::RandomSorter::Node::allocation
std::vector<Node*> mesos::internal::master::allocator::RandomSorter::Node::children
Kind mesos::internal::master::allocator::RandomSorter::Node::kind
std::string mesos::internal::master::allocator::RandomSorter::Node::name
Node* mesos::internal::master::allocator::RandomSorter::Node::parent
std::string mesos::internal::master::allocator::RandomSorter::Node::path
Option<double> mesos::internal::master::allocator::RandomSorter::Node::weight
mutable

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