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

Method updateFramework

src/master/master.cpp:3244–3260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3242
3243
3244void Master::updateFramework(
3245 const process::UPID& from,
3246 mesos::scheduler::Call::UpdateFramework&& call)
3247{
3248 FrameworkID frameworkId = call.framework_info().id();
3249
3250 updateFramework(std::move(call))
3251 .onAny(defer(self(), [this, from, frameworkId](
3252 const Future<process::http::Response>& response) {
3253 if (response->code != process::http::Status::OK) {
3254 CHECK_EQ(response->type, process::http::Response::BODY);
3255 FrameworkErrorMessage message;
3256 message.set_message(response->body);
3257 send(from, message);
3258 }
3259 }));
3260}
3261
3262
3263Future<process::http::Response> Master::updateFramework(

Callers

nothing calls this directly

Calls 15

updateFrameworkFunction · 0.85
deferFunction · 0.85
validateFrameworkFunction · 0.85
BadRequestClass · 0.85
validateUpdateFunction · 0.85
ForbiddenClass · 0.85
OKClass · 0.85
getRolesFunction · 0.85
copyFunction · 0.85
foreachFunction · 0.70
errorMethod · 0.65
updateFrameworkMethod · 0.65

Tested by

no test coverage detected