Apache Mesos
Classes | Public Member Functions | Static Public Member Functions | List of all members
mesos::allocator::OfferConstraintsFilter Class Reference

#include <allocator.hpp>

Classes

struct  Options
 

Public Member Functions

 OfferConstraintsFilter ()
 
 OfferConstraintsFilter (OfferConstraintsFilter &&)
 
OfferConstraintsFilteroperator= (OfferConstraintsFilter &&)
 
 ~OfferConstraintsFilter ()
 
bool isAgentExcluded (const std::string &role, const SlaveInfo &agentInfo) const
 Returns true if the allocator is allowed to offer resoureces on the agent to the framework's role, and false otherwise. More...
 

Static Public Member Functions

static Try< OfferConstraintsFiltercreate (const Options &options, scheduler::OfferConstraints &&constraints)
 

Constructor & Destructor Documentation

mesos::allocator::OfferConstraintsFilter::OfferConstraintsFilter ( )
mesos::allocator::OfferConstraintsFilter::OfferConstraintsFilter ( OfferConstraintsFilter &&  )
mesos::allocator::OfferConstraintsFilter::~OfferConstraintsFilter ( )

Member Function Documentation

static Try<OfferConstraintsFilter> mesos::allocator::OfferConstraintsFilter::create ( const Options options,
scheduler::OfferConstraints &&  constraints 
)
static
bool mesos::allocator::OfferConstraintsFilter::isAgentExcluded ( const std::string &  role,
const SlaveInfo &  agentInfo 
) const

Returns true if the allocator is allowed to offer resoureces on the agent to the framework's role, and false otherwise.

OfferConstraintsFilter& mesos::allocator::OfferConstraintsFilter::operator= ( OfferConstraintsFilter &&  )

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