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

Method __teardown

src/master/http.cpp:2823–2835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2821
2822
2823Future<Response> Master::Http::__teardown(const FrameworkID& id) const
2824{
2825 Framework* framework = master->getFramework(id);
2826
2827 if (framework == nullptr) {
2828 return BadRequest("No framework found with ID " + stringify(id));
2829 }
2830
2831 // TODO(ijimenez): Do 'removeFramework' asynchronously.
2832 master->removeFramework(framework);
2833
2834 return OK();
2835}
2836
2837
2838Future<Response> Master::Http::teardown(

Callers

nothing calls this directly

Calls 5

BadRequestClass · 0.85
OKClass · 0.85
stringifyFunction · 0.50
getFrameworkMethod · 0.45
removeFrameworkMethod · 0.45

Tested by

no test coverage detected