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

Method disconnect

src/master/master.cpp:3402–3420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3400
3401
3402void Master::disconnect(Framework* framework)
3403{
3404 CHECK_NOTNULL(framework);
3405 CHECK(framework->connected());
3406
3407 if (framework->active()) {
3408 deactivate(framework, true);
3409 }
3410
3411 LOG(INFO) << "Disconnecting framework " << *framework;
3412
3413 if (framework->pid().isSome()) {
3414 // Remove the framework from authenticated. This is safe because
3415 // a framework will always reauthenticate before (re-)registering.
3416 authenticated.erase(framework->pid().get());
3417 }
3418
3419 CHECK(framework->disconnect());
3420}
3421
3422
3423void Master::deactivate(Framework* framework, bool rescind)

Callers 6

foreachvalueMethod · 0.45
waitedMethod · 0.45
TEST_FFunction · 0.45
removeFrameworkMethod · 0.45

Calls 7

activeMethod · 0.80
connectedMethod · 0.65
dispatchFunction · 0.50
isSomeMethod · 0.45
pidMethod · 0.45
eraseMethod · 0.45
getMethod · 0.45

Tested by 2

TEST_FFunction · 0.36