Package com.zhangwoo.spider.po

Examples of com.zhangwoo.spider.po.Task


    try {
      tmpResult = dao
          .query("select tid,tname,turl,updatetime,sleeptime from task where runable=1 and nextstart<=now()");
      for (Object[] tmp : tmpResult) {
        Task t = new Task();
        t.setTid(tmp[0].toString());
        t.setTname(tmp[1].toString());
        t.setTurl(tmp[2].toString());
        t.setUpdatetime(tmp[3].toString());
        t.setSleeptime(tmp[4].toString());
        result.add(t);
      }
    } catch (Exception e) {
      logger.error("", e);
    }
View Full Code Here

TOP

Related Classes of com.zhangwoo.spider.po.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.