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

Function create

src/examples/example_module_impl.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98static TestModule* create(const mesos::Parameters& parameters)
99{
100 TestModule *testModule = new TestModuleImpl();
101 Try<Nothing> result = testModule->initialize(parameters);
102 if (result.isError()) {
103 delete testModule;
104 // TODO(karya): make the return type Try<TestModule*> to pass the
105 // error message as well.
106 return nullptr;
107 }
108 return testModule;
109}
110
111
112// Declares a module named 'org_apache_mesos_TestModule' of

Callers 8

createLocalAuthorizerFunction · 0.70
createQoSControllerFunction · 0.70
createCpuIsolatorFunction · 0.70
createMemIsolatorFunction · 0.70
createHttpAuthenticatorFunction · 0.70
createResourceEstimatorFunction · 0.70
createDRFAllocatorFunction · 0.70

Calls 2

initializeMethod · 0.45
isErrorMethod · 0.45

Tested by 7

createLocalAuthorizerFunction · 0.56
createQoSControllerFunction · 0.56
createCpuIsolatorFunction · 0.56
createMemIsolatorFunction · 0.56
createHttpAuthenticatorFunction · 0.56
createResourceEstimatorFunction · 0.56
createDRFAllocatorFunction · 0.56