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

Function downgradeResources

src/common/resources_utils.cpp:875–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873
874
875Try<Nothing> downgradeResources(RepeatedPtrField<Resource>* resources)
876{
877 CHECK_NOTNULL(resources);
878
879 foreach (Resource& resource, *resources) {
880 Try<Nothing> result = downgradeResource(&resource);
881 if (result.isError()) {
882 return result;
883 }
884 }
885
886 return Nothing();
887}
888
889
890Try<Nothing> downgradeResources(vector<Resource>* resources)

Callers 8

TESTFunction · 0.85
outboundResourcesMethod · 0.85
checkpointFunction · 0.85
performMethod · 0.85
foreachFunction · 0.85
___reregisterSlaveMethod · 0.85
_applyMethod · 0.85

Calls 7

downgradeResourceFunction · 0.85
NothingClass · 0.85
convertResourcesImplFunction · 0.85
atMethod · 0.80
foreachFunction · 0.70
isErrorMethod · 0.45

Tested by 2

TESTFunction · 0.68
outboundResourcesMethod · 0.68