concept executor in category mesos

This is an excerpt from Manning's book Mesos in Action.
An executor is a process launched on a Mesos slave that runs a framework’s tasks on a slave. As of this writing, the built-in Mesos executors allow frameworks to execute shell scripts or run Docker containers. New executors can be written using Mesos’s various language bindings and bundled with the framework, to be fetched by the Mesos slave when a task requires it.
Mesos frameworks are distributed systems that use Mesos to receive cluster resources. The term framework in Mesos refers to any application that registers with the Mesos master and runs on top of the Mesos cluster. There are two components that make up a Mesos framework—the scheduler and the executor:
The task ID is available in the executor’s launchTask() method, which is discussed more in section 10.3. For now, you can see a basic implementation of launching a task and providing a status update in the following code snippet: