MCPcopy Create free account
hub / github.com/apache/mesos / ~Master

Method ~Master

src/tests/cluster.cpp:381–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381Master::~Master()
382{
383 // Remove any libprocess authorization callbacks that were installed.
384 if (authorizationCallbacksSet) {
385 process::http::authorization::unsetCallbacks();
386 }
387
388 // NOTE: Authenticators' lifetimes are tied to libprocess's lifetime.
389 // This means that multiple masters in tests are not supported.
390 process::http::authentication::unsetAuthenticator(
391 master::READONLY_HTTP_AUTHENTICATION_REALM);
392 process::http::authentication::unsetAuthenticator(
393 master::READWRITE_HTTP_AUTHENTICATION_REALM);
394
395 process::terminate(pid);
396 process::wait(pid);
397}
398
399
400process::Owned<MasterDetector> Master::createDetector()

Callers

nothing calls this directly

Calls 4

unsetCallbacksFunction · 0.85
unsetAuthenticatorFunction · 0.85
terminateFunction · 0.50
waitFunction · 0.50

Tested by

no test coverage detected