apache/incubator-spark — pull request #596 by tsdeng (2014-02-13 19:54:14+00:00)
Title: add onExecutorsStopped to event listeners for getting final stats

add onExecutorStopped event handler.
So when master command a shutdown, the executors can send the final message reporting its statuses by replying ExecutorFinalState message(currently only hdfsRead is reported, more can be added later).
And the master will wait for all response to comeback within the timeout window.