public interface ExecutorTaskFactory
ExecutorTaskFactory's implementations are responsible for creating ExecutorTask objects.| Modifier and Type | Method and Description |
|---|---|
ExecutorTask |
createTask(Protos.TaskInfo taskInfo,
ExecutorDriver driver)
Creates
ExecutorTask objects that can be launched and managed by CustomExecutor. |
ExecutorTask createTask(Protos.TaskInfo taskInfo, ExecutorDriver driver)
ExecutorTask objects that can be launched and managed by CustomExecutor.taskInfo - The TaskInfo provided by Mesos' call to
org.apache.mesos.Executor#launchTask(ExecutorDriver, Protos.TaskInfo)driver - The ExecutorDriver provided by Mesos.ExecutorTask which can be executed.