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

Method isReserved

src/v1/resources.cpp:1198–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1196
1197
1198bool Resources::isReserved(
1199 const Resource& resource,
1200 const Option<string>& role)
1201{
1202 CHECK(!resource.has_role()) << resource;
1203 CHECK(!resource.has_reservation()) << resource;
1204
1205 return !isUnreserved(resource) &&
1206 (role.isNone() || role.get() == reservationRole(resource));
1207}
1208
1209
1210bool Resources::isAllocatableTo(

Callers

nothing calls this directly

Calls 2

isNoneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected