Project: mesos
Issue MESOS-3476: Refactor Status Update method on Agent to handle HTTP based Executors
Currently, receiving a status update sent from slave to itself , {{runTask}} , {{killTask}} and status updates from executors are handled by the {{Slave::statusUpdate}} method on Slave. The signature of the method is {{void Slave::statusUpdate(StatusUpdate update, const UPID& pid)}}. We need to create another overload of it that can also handle HTTP based executors which the previous PID based function can also call into. The signature of the new function could be: {{void Slave::statusUpdate(StatusUpdate update, Executor* executor)}} The HTTP Executor would also call into this new function via {{src/slave/http.cpp}}
Story points: 8