public class DefaultExecutorTaskFactory extends java.lang.Object implements ExecutorTaskFactory
Constructor and Description |
---|
DefaultExecutorTaskFactory() |
Modifier and Type | Method and Description |
---|---|
ExecutorTask |
createTask(Protos.TaskInfo taskInfo,
ExecutorDriver executorDriver)
Creates
ExecutorTask objects that can be launched and managed by CustomExecutor . |
public ExecutorTask createTask(Protos.TaskInfo taskInfo, ExecutorDriver executorDriver)
ExecutorTaskFactory
ExecutorTask
objects that can be launched and managed by CustomExecutor
.createTask
in interface ExecutorTaskFactory
taskInfo
- The TaskInfo provided by Mesos' call to
org.apache.mesos.Executor#launchTask(ExecutorDriver, Protos.TaskInfo)
executorDriver
- The ExecutorDriver provided by Mesos.ExecutorTask
which can be executed.