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

Method isDynamicallyReserved

src/common/resources.cpp:1212–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210
1211
1212bool Resources::isDynamicallyReserved(const Resource& resource)
1213{
1214 CHECK(!resource.has_role()) << resource;
1215 CHECK(!resource.has_reservation()) << resource;
1216
1217 return isReserved(resource) && (resource.reservations().rbegin()->type() ==
1218 Resource::ReservationInfo::DYNAMIC);
1219}
1220
1221
1222bool Resources::isRevocable(const Resource& resource)

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
reservationsMethod · 0.45

Tested by

no test coverage detected