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

Method killContainer

src/slave/http.cpp:3676–3692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3674
3675
3676Future<Response> Http::killContainer(
3677 const mesos::agent::Call& call,
3678 ContentType acceptType,
3679 const Option<Principal>& principal) const
3680{
3681 CHECK_EQ(mesos::agent::Call::KILL_CONTAINER, call.type());
3682 CHECK(call.has_kill_container());
3683
3684 LOG(INFO) << "Processing KILL_CONTAINER call for container '"
3685 << call.kill_container().container_id() << "'";
3686
3687 if (call.kill_container().container_id().has_parent()) {
3688 return killContainer<KILL_NESTED_CONTAINER>(call, acceptType, principal);
3689 }
3690
3691 return killContainer<KILL_STANDALONE_CONTAINER>(call, acceptType, principal);
3692}
3693
3694
3695template <mesos::authorization::Action action>

Callers

nothing calls this directly

Calls 6

deferFunction · 0.85
typeMethod · 0.80
createFunction · 0.50
signalMethod · 0.45
thenMethod · 0.45
selfMethod · 0.45

Tested by

no test coverage detected