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

Function addResourceEstimatorModules

src/tests/module.cpp:176–190  ·  view source on GitHub ↗

Add available ResourceEstimator modules.

Source from the content-addressed store, hash-verified

174
175// Add available ResourceEstimator modules.
176static void addResourceEstimatorModules(Modules* modules)
177{
178 CHECK_NOTNULL(modules);
179
180 // Now add our resource_estimator module.
181 Modules::Library* library = modules->add_libraries();
182 library->set_file(getModulePath("testresource_estimator"));
183
184 // To add a new module from this library, create a new ModuleID enum
185 // and tie it with a module name.
186 addModule(
187 library,
188 TestNoopResourceEstimator,
189 "org_apache_mesos_TestNoopResourceEstimator");
190}
191
192
193static void addAuthorizerModules(Modules* modules)

Callers 1

initModulesFunction · 0.85

Calls 2

getModulePathFunction · 0.85
addModuleFunction · 0.85

Tested by

no test coverage detected