MCPcopy Create free account
hub / github.com/apache/mesos / allocated

Method allocated

src/master/master.cpp:3673–3683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3671
3672
3673ResourceQuantities Master::RoleResourceBreakdown::allocated() const
3674{
3675 ResourceQuantities result;
3676
3677 foreachvalue (Framework* framework, master->frameworks.registered) {
3678 result += ResourceQuantities::fromResources(
3679 framework->totalUsedResources.allocatedToRoleSubtree(role));
3680 }
3681
3682 return result;
3683}
3684
3685
3686ResourceQuantities Master::RoleResourceBreakdown::reserved() const

Callers 6

TESTFunction · 0.45
TYPED_TESTFunction · 0.45
foreachFunction · 0.45
foreachMethod · 0.45
foreachMethod · 0.45
foreachFunction · 0.45

Calls 2

foreachvalueFunction · 0.70

Tested by 3

TESTFunction · 0.36
TYPED_TESTFunction · 0.36
foreachFunction · 0.36