Package com.firefly.schedule.core.support.schedule

Examples of com.firefly.schedule.core.support.schedule.ScheduleInfo


     * @throws SQLException 抛出数据库异常
     */
    private void allocatingTask(List<ScheduleInfo> aliveList) throws SQLException{
      StringBuilder aliveSchedule = new StringBuilder();
      for (int i = 0; i < aliveList.size(); ++i) {
        ScheduleInfo scheduleInfo = aliveList.get(i);
            if (config.getScheduleName().equals(scheduleInfo.getSchedulename())) {
                // 将最新的序号同步到数据库
                Object[] arguments = { i,
                    config.getScheduleName()};
                QueryHelper.update("UPDATE jd_ofc_schedule SET seqno = ? WHERE schedulename = ?", arguments);
                config.setSeqno(i);
            }
            aliveSchedule.append(scheduleInfo.getId());
            aliveSchedule.append(";");
        }
      config.setAliveSchedule(aliveSchedule.toString());
        config.setScheduleNum(aliveList.size());
    }
View Full Code Here

TOP

Related Classes of com.firefly.schedule.core.support.schedule.ScheduleInfo

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.