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

Method trackUnderRole

src/master/framework.cpp:714–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712
713
714void Framework::trackUnderRole(const std::string& role)
715{
716 CHECK(master->isWhitelistedRole(role))
717 << "Unknown role '" << role << "'" << " of framework " << *this;
718
719 CHECK(!isTrackedUnderRole(role));
720
721 if (!master->roles.contains(role)) {
722 master->roles[role] = new Role(master, role);
723 }
724 master->roles.at(role)->addFramework(this);
725}
726
727
728void Framework::untrackUnderRole(const std::string& role)

Callers

nothing calls this directly

Calls 4

isWhitelistedRoleMethod · 0.80
atMethod · 0.80
containsMethod · 0.45
addFrameworkMethod · 0.45

Tested by

no test coverage detected