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

Function createResourceEstimator

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

Source from the content-addressed store, hash-verified

34using mesos::slave::ResourceEstimator;
35
36static ResourceEstimator* createResourceEstimator(const Parameters& parameters)
37{
38 Try<ResourceEstimator*> result =
39 NoopResourceEstimator::create(None());
40 if (result.isError()) {
41 return nullptr;
42 }
43 return result.get();
44}
45
46
47// Declares a TestResourceEstimator module named

Callers

nothing calls this directly

Calls 4

NoneClass · 0.85
createFunction · 0.70
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected