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

Method offered

src/master/master.cpp:3660–3670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3658
3659
3660ResourceQuantities Master::RoleResourceBreakdown::offered() const
3661{
3662 ResourceQuantities result;
3663
3664 foreachvalue (Framework* framework, master->frameworks.registered) {
3665 result += ResourceQuantities::fromResources(
3666 framework->totalOfferedResources.allocatedToRoleSubtree(role));
3667 }
3668
3669 return result;
3670}
3671
3672
3673ResourceQuantities Master::RoleResourceBreakdown::allocated() const

Callers 2

foreachFunction · 0.80
foreachFunction · 0.80

Calls 2

foreachvalueFunction · 0.70

Tested by

no test coverage detected