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

Function createDRFAllocator

src/examples/test_allocator_module.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36static Allocator* createDRFAllocator(const Parameters& parameters)
37{
38 Try<Allocator*> allocator = HierarchicalDRFAllocator::create();
39 if (allocator.isError()) {
40 return nullptr;
41 }
42
43 return allocator.get();
44}
45
46
47// Declares a DRFAllocator module named

Callers

nothing calls this directly

Calls 3

createFunction · 0.70
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected