Apache Mesos
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mesos::internal::master::allocator::DRFSorter::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 ()
 
std::string clientPath () const
 
bool isLeaf () const
 
void removeChild (const Node *child)
 
void addChild (Node *child)
 

Static Public Member Functions

static bool compareDRF (const Node *left, const Node *right)
 

Public Attributes

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

Member Enumeration Documentation

Enumerator
ACTIVE_LEAF 
INACTIVE_LEAF 
INTERNAL 

Constructor & Destructor Documentation

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

Member Function Documentation

void mesos::internal::master::allocator::DRFSorter::Node::addChild ( Node child)
inline
std::string mesos::internal::master::allocator::DRFSorter::Node::clientPath ( ) const
inline
static bool mesos::internal::master::allocator::DRFSorter::Node::compareDRF ( const Node left,
const Node right 
)
inlinestatic
bool mesos::internal::master::allocator::DRFSorter::Node::isLeaf ( ) const
inline
void mesos::internal::master::allocator::DRFSorter::Node::removeChild ( const Node child)
inline

Member Data Documentation

struct mesos::internal::master::allocator::DRFSorter::Node::Allocation mesos::internal::master::allocator::DRFSorter::Node::allocation
std::vector<Node*> mesos::internal::master::allocator::DRFSorter::Node::children
Kind mesos::internal::master::allocator::DRFSorter::Node::kind
std::string mesos::internal::master::allocator::DRFSorter::Node::name
Node* mesos::internal::master::allocator::DRFSorter::Node::parent
std::string mesos::internal::master::allocator::DRFSorter::Node::path
double mesos::internal::master::allocator::DRFSorter::Node::share

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