NormalJobRunner.java 541 B

123456789101112131415161718192021
  1. package com.lts.tasktracker.runner;
  2. import com.lts.core.domain.Job;
  3. import com.lts.core.json.JSON;
  4. import com.lts.tasktracker.Result;
  5. /**
  6. * @author Robert HG (254963746@qq.com) on 2/21/16.
  7. */
  8. public class NormalJobRunner implements JobRunner {
  9. boolean stop = false;
  10. @Override
  11. public Result run(Job job) throws Throwable {
  12. System.out.println("我开始执行:" + JSON.toJSONString(job));
  13. while (!stop) {
  14. int i = 1;
  15. }
  16. System.out.println("我退出了");
  17. return null;
  18. }
  19. }