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

Method launch

src/resource_provider/daemon.cpp:475–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473
474
475Future<Nothing> LocalResourceProviderDaemonProcess::launch(
476 const string& type,
477 const string& name)
478{
479 CHECK_SOME(slaveId);
480 CHECK(providers[type].contains(name));
481
482 ProviderData& data = providers[type].at(name);
483 CHECK(data.removing.isNone());
484
485 // Destruct the previous resource provider (which will synchronously
486 // terminate its actor and driver) if there is one.
487 data.provider.reset();
488
489 return generateAuthToken(data.info)
490 .then(defer(self(), &Self::_launch, type, name, data.version, lambda::_1));
491}
492
493
494Future<Nothing> LocalResourceProviderDaemonProcess::_launch(

Callers 1

foreachFunction · 0.45

Calls 6

deferFunction · 0.85
atMethod · 0.80
containsMethod · 0.45
isNoneMethod · 0.45
resetMethod · 0.45
thenMethod · 0.45

Tested by

no test coverage detected