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

Method getTask

src/master/master.cpp:12570–12576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12568
12569
12570Task* Slave::getTask(const FrameworkID& frameworkId, const TaskID& taskId) const
12571{
12572 if (tasks.contains(frameworkId) && tasks.at(frameworkId).contains(taskId)) {
12573 return tasks.at(frameworkId).at(taskId);
12574 }
12575 return nullptr;
12576}
12577
12578
12579void Slave::addTask(Task* task)

Callers 5

killMethod · 0.45
acknowledgeMethod · 0.45
statusUpdateMethod · 0.45
forwardMethod · 0.45
foreachFunction · 0.45

Calls 2

atMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected