TestJob.java 604 B

12345678910111213141516171819202122232425
  1. package com.yihu.hos.services;
  2. import com.yihu.hos.common.Services;
  3. import com.yihu.hos.datacollect.service.intf.IDatacollectService;
  4. import com.yihu.hos.web.framework.constrant.DateConvert;
  5. import javax.annotation.Resource;
  6. import java.util.Date;
  7. /**
  8. * Created by hzp on 2016/2/2.
  9. */
  10. public class TestJob implements IBaseJob {
  11. @Resource(name = Services.DatacollectService)
  12. IDatacollectService service;
  13. @Override
  14. public void execute(String jobId) throws Exception{
  15. System.out.println("测试quartz:"+DateConvert.toString(new Date()) + ":"+jobId);
  16. return;
  17. }
  18. }