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

Method _destroy

src/slave/containerizer/mesos/linux_launcher.cpp:625–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623
624
625Future<Nothing> LinuxLauncherProcess::_destroy(const ContainerID& containerId)
626{
627 if (systemdHierarchy.isNone()) {
628 return Nothing();
629 }
630
631 const string cgroup =
632 containerizer::paths::getCgroupPath(flags.cgroups_root, containerId);
633
634 if (!cgroups::exists(systemdHierarchy.get(), cgroup)) {
635 return Nothing();
636 }
637
638 LOG(INFO) << "Destroying cgroup '"
639 << path::join(systemdHierarchy.get(), cgroup) << "'";
640
641 return cgroups::destroy(
642 systemdHierarchy.get(),
643 cgroup,
644 flags.cgroups_destroy_timeout);
645}
646
647
648Future<ContainerStatus> LinuxLauncherProcess::status(

Callers

nothing calls this directly

Calls 7

NothingClass · 0.85
getCgroupPathFunction · 0.85
destroyFunction · 0.85
existsFunction · 0.50
joinFunction · 0.50
isNoneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected