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

#include <hierarchical.hpp>

Classes

struct  Maintenance
 

Public Member Functions

 Slave (const SlaveInfo &_info, const protobuf::slave::Capabilities &_capabilities, bool _activated, const Resources &_total, const hashmap< FrameworkID, Resources > &_allocated)
 
const ResourcesgetTotal () const
 
const hashmap< FrameworkID, Resources > & getOfferedOrAllocated () const
 
const ResourcesgetTotalOfferedOrAllocated () const
 
const ResourcesgetAvailable () const
 
bool hasGpu () const
 
void updateTotal (const Resources &newTotal)
 
void increaseAvailable (const FrameworkID &frameworkId, const Resources &offeredOrAllocated_)
 
void decreaseAvailable (const FrameworkID &frameworkId, const Resources &offeredOrAllocated_)
 

Public Attributes

const SlaveID id
 
SlaveInfo info
 
protobuf::slave::Capabilities capabilities
 
bool activated
 
Option< Maintenancemaintenance
 
Resources totalAllocated
 

Constructor & Destructor Documentation

mesos::internal::master::allocator::internal::Slave::Slave ( const SlaveInfo &  _info,
const protobuf::slave::Capabilities _capabilities,
bool  _activated,
const Resources _total,
const hashmap< FrameworkID, Resources > &  _allocated 
)
inline

Member Function Documentation

void mesos::internal::master::allocator::internal::Slave::decreaseAvailable ( const FrameworkID &  frameworkId,
const Resources offeredOrAllocated_ 
)
inline
const Resources& mesos::internal::master::allocator::internal::Slave::getAvailable ( ) const
inline
const hashmap<FrameworkID, Resources>& mesos::internal::master::allocator::internal::Slave::getOfferedOrAllocated ( ) const
inline
const Resources& mesos::internal::master::allocator::internal::Slave::getTotal ( ) const
inline
const Resources& mesos::internal::master::allocator::internal::Slave::getTotalOfferedOrAllocated ( ) const
inline
bool mesos::internal::master::allocator::internal::Slave::hasGpu ( ) const
inline
void mesos::internal::master::allocator::internal::Slave::increaseAvailable ( const FrameworkID &  frameworkId,
const Resources offeredOrAllocated_ 
)
inline
void mesos::internal::master::allocator::internal::Slave::updateTotal ( const Resources newTotal)
inline

Member Data Documentation

bool mesos::internal::master::allocator::internal::Slave::activated
protobuf::slave::Capabilities mesos::internal::master::allocator::internal::Slave::capabilities
const SlaveID mesos::internal::master::allocator::internal::Slave::id
SlaveInfo mesos::internal::master::allocator::internal::Slave::info
Option<Maintenance> mesos::internal::master::allocator::internal::Slave::maintenance
Resources mesos::internal::master::allocator::internal::Slave::totalAllocated

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