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);
}
Aggregations