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

Method isDisk

src/common/resources.cpp:1165–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163
1164
1165bool Resources::isDisk(
1166 const Resource& resource,
1167 const Resource::DiskInfo::Source::Type& type)
1168{
1169 CHECK(!resource.has_role()) << resource;
1170 CHECK(!resource.has_reservation()) << resource;
1171
1172 return resource.has_disk() &&
1173 resource.disk().has_source() &&
1174 resource.disk().source().type() == type;
1175}
1176
1177
1178bool Resources::isReserved(

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
diskMethod · 0.45

Tested by

no test coverage detected