Examples of ScheduleInfo


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

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            final ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            final TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            final ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            final TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            info.description = att.getDescription();
            info.method = toInfo(att.getMethod());

            for (Schedule schedule : att.getSchedule()) {
                ScheduleInfo scheduleInfo = new ScheduleInfo();
                scheduleInfo.second = schedule.getSecond();
                scheduleInfo.minute = schedule.getMinute();
                scheduleInfo.hour = schedule.getHour();
                scheduleInfo.dayOfWeek = schedule.getDayOfWeek();
                scheduleInfo.dayOfMonth = schedule.getDayOfMonth();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            final ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            final TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            info.description = att.getDescription();
            info.method = toInfo(att.getMethod());

            for (Schedule schedule : att.getSchedule()) {
                ScheduleInfo scheduleInfo = new ScheduleInfo();
                scheduleInfo.second = schedule.getSecond();
                scheduleInfo.minute = schedule.getMinute();
                scheduleInfo.hour = schedule.getHour();
                scheduleInfo.dayOfWeek = schedule.getDayOfWeek();
                scheduleInfo.dayOfMonth = schedule.getDayOfMonth();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ScheduleInfo

            if (methodScheduleInfo == null) {
                methodScheduleInfo = new MethodScheduleInfo();
                methodScheduleInfoMap.put(timeoutMethod, methodScheduleInfo);
                methodScheduleInfo.method = toInfo(timeoutMethod);
            }
            final ScheduleInfo scheduleInfo = new ScheduleInfo();
            //Copy TimerSchedule
            final TimerSchedule timerSchedule = timer.getSchedule();
            if (timerSchedule != null) {
                scheduleInfo.second = timerSchedule.getSecond();
                scheduleInfo.minute = timerSchedule.getMinute();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.