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

Method isFrameworkTrackedUnderRole

src/master/allocator/mesos/hierarchical.cpp:2907–2912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2905
2906
2907bool HierarchicalAllocatorProcess::isFrameworkTrackedUnderRole(
2908 const FrameworkID& frameworkId, const string& role) const
2909{
2910 Option<const Role*> r = roleTree.get(role);
2911 return r.isSome() && (*r)->frameworks().contains(frameworkId);
2912}
2913
2914
2915Option<Slave*> HierarchicalAllocatorProcess::getSlave(

Callers

nothing calls this directly

Calls 4

getMethod · 0.45
isSomeMethod · 0.45
containsMethod · 0.45
frameworksMethod · 0.45

Tested by

no test coverage detected