12345678910111213141516171819202122232425262728293031323334353637 |
- package com.sinosoft.lz.webservice.service;
- import java.util.Date;
- import org.apache.commons.logging.Log;
- import org.apache.commons.logging.LogFactory;
- import org.quartz.JobExecutionContext;
- import org.quartz.JobExecutionException;
- import org.springframework.scheduling.quartz.QuartzJobBean;
- import org.springframework.stereotype.Service;
- /**
- *
- *@filename SOETaskImpl.java
- *@author liuyuliang
- *@date 2014-6-24
- */
- @Service("iSOETask")
- public class SOETaskImpl extends QuartzJobBean{
- private static Log log = LogFactory.getLog(SOETaskImpl.class);
- // TODO Auto-generated method stub
- private static int counter = 0;
- protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
- System.out.println();
- long ms = System.currentTimeMillis();
- System.out.println("\t\t" + new Date(ms));
- System.out.println(ms);
- System.out.println("(" + counter++ + ")");
- String s = (String) context.getMergedJobDataMap().get("service");
- System.out.println(s);
- System.out.println();
- // log.info("11111111111111111111");
- // MessagePushService.showMsg("防风防汛-F-2015-0905");
- }
- }
|