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

Function addAllocatorModules

src/tests/module.cpp:161–172  ·  view source on GitHub ↗

Add available Allocator modules.

Source from the content-addressed store, hash-verified

159
160// Add available Allocator modules.
161static void addAllocatorModules(Modules* modules)
162{
163 CHECK_NOTNULL(modules);
164
165 // Now add our allocator module.
166 Modules::Library* library = modules->add_libraries();
167 library->set_file(getModulePath("testallocator"));
168
169 // To add a new module from this library, create a new ModuleID enum
170 // and tie it with a module name.
171 addModule(library, TestDRFAllocator, "org_apache_mesos_TestDRFAllocator");
172}
173
174
175// Add available ResourceEstimator modules.

Callers 1

initModulesFunction · 0.85

Calls 2

getModulePathFunction · 0.85
addModuleFunction · 0.85

Tested by

no test coverage detected