Apache Mesos
Public Member Functions | Public Attributes | List of all members
mesos::internal::master::allocator::DRFSorter::Node::Allocation Struct Reference

#include <sorter.hpp>

Public Member Functions

 Allocation ()
 
void add (const SlaveID &slaveId, const Resources &toAdd)
 
void subtract (const SlaveID &slaveId, const Resources &toRemove)
 
void update (const SlaveID &slaveId, const Resources &oldAllocation, const Resources &newAllocation)
 

Public Attributes

uint64_t count
 
hashmap< SlaveID, Resourcesresources
 
ResourceQuantities totals
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::DRFSorter::Node::Allocation::Allocation ( )
inline

Member Function Documentation

void mesos::internal::master::allocator::DRFSorter::Node::Allocation::add ( const SlaveID &  slaveId,
const Resources toAdd 
)
inline
void mesos::internal::master::allocator::DRFSorter::Node::Allocation::subtract ( const SlaveID &  slaveId,
const Resources toRemove 
)
inline
void mesos::internal::master::allocator::DRFSorter::Node::Allocation::update ( const SlaveID &  slaveId,
const Resources oldAllocation,
const Resources newAllocation 
)
inline

Member Data Documentation

uint64_t mesos::internal::master::allocator::DRFSorter::Node::Allocation::count
hashmap<SlaveID, Resources> mesos::internal::master::allocator::DRFSorter::Node::Allocation::resources
ResourceQuantities mesos::internal::master::allocator::DRFSorter::Node::Allocation::totals

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