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

Method create

src/checks/checker.cpp:88–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88Try<Owned<Checker>> Checker::create(
89 const CheckInfo& check,
90 const string& launcherDir,
91 const lambda::function<void(const CheckStatusInfo&)>& callback,
92 const TaskID& taskId,
93 Variant<runtime::Plain, runtime::Docker, runtime::Nested> runtime)
94{
95 // Validate the `CheckInfo` protobuf.
96 Option<Error> error = common::validation::validateCheckInfo(check);
97 if (error.isSome()) {
98 return error.get();
99 }
100
101 return Owned<Checker>(
102 new Checker(
103 check,
104 launcherDir,
105 callback,
106 taskId,
107 std::move(runtime)));
108}
109
110
111Checker::Checker(

Callers

nothing calls this directly

Calls 3

validateCheckInfoFunction · 0.85
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected