Search in sources :

Example 1 with TaskExecutor

use of com.dangdang.ddframe.job.cloud.executor.TaskExecutor in project elastic-job by dangdangdotcom.

the class JobBootstrap method execute.

/**
     * 执行作业.
     */
public static void execute() {
    MesosExecutorDriver driver = new MesosExecutorDriver(new TaskExecutor());
    System.exit(Protos.Status.DRIVER_STOPPED == driver.run() ? 0 : -1);
}
Also used : TaskExecutor(com.dangdang.ddframe.job.cloud.executor.TaskExecutor) MesosExecutorDriver(org.apache.mesos.MesosExecutorDriver)

Aggregations

TaskExecutor (com.dangdang.ddframe.job.cloud.executor.TaskExecutor)1 MesosExecutorDriver (org.apache.mesos.MesosExecutorDriver)1