Examples of CalendarTimerEntity


Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

            if (ineligibleTimerStates.contains(persistedTimer.getTimerState())) {
                continue;
            }
            TimerImpl activeTimer;
            if (persistedTimer.isCalendarTimer()) {
                final CalendarTimerEntity calendarTimerEntity = (CalendarTimerEntity) persistedTimer;
                // create a timer instance from the persisted calendar timer
                activeTimer = new CalendarTimer(calendarTimerEntity, this);
            } else {
                // create the timer instance from the persisted state
                activeTimer = new TimerImpl(persistedTimer, this);
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

        // and scheduling the timer task
        for (final TimerImpl activeTimer : restorableTimers) {

            if (activeTimer.isAutoTimer()) {
                boolean found = false;
                final CalendarTimerEntity entity = (CalendarTimerEntity) activeTimer.getPersistentState();
                //so we know we have an auto timer. We need to try and match it up with the auto timers.
                ListIterator<ScheduleTimer> it = newAutoTimers.listIterator();
                while (it.hasNext()) {
                    ScheduleTimer timer = it.next();
                    final String methodName = timer.getMethod().getName();
                    final String[] params = new String[timer.getMethod().getParameterTypes().length];
                    for (int i = 0; i < timer.getMethod().getParameterTypes().length; ++i) {
                        params[i] = timer.getMethod().getParameterTypes()[i].getName();
                    }
                    if (doesTimeoutMethodMatch(entity.getTimeoutMethod(), methodName, params)) {

                        //the timers have the same method.
                        //now lets make sure the schedule is the same
                        if (this.doesScheduleMatch(entity.getScheduleExpression(), timer.getScheduleExpression())) {
                            it.remove();
                            found = true;
                            break;
                        }
                    }
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

            if (ineligibleTimerStates.contains(persistedTimer.getTimerState())) {
                continue;
            }
            TimerImpl activeTimer;
            if (persistedTimer.isCalendarTimer()) {
                final CalendarTimerEntity calendarTimerEntity = (CalendarTimerEntity) persistedTimer;
                // create a timer instance from the persisted calendar timer
                activeTimer = new CalendarTimer(calendarTimerEntity, this);
            } else {
                // create the timer instance from the persisted state
                activeTimer = new TimerImpl(persistedTimer, this);
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

        // and scheduling the timer task
        for (final TimerImpl activeTimer : restorableTimers) {

            if (activeTimer.isAutoTimer()) {
                boolean found = false;
                final CalendarTimerEntity entity = (CalendarTimerEntity) activeTimer.getPersistentState();
                //so we know we have an auto timer. We need to try and match it up with the auto timers.
                ListIterator<ScheduleTimer> it = newAutoTimers.listIterator();
                while (it.hasNext()) {
                    ScheduleTimer timer = it.next();
                    final String methodName = timer.getMethod().getName();
                    final String[] params = new String[timer.getMethod().getParameterTypes().length];
                    for (int i = 0; i < timer.getMethod().getParameterTypes().length; ++i) {
                        params[i] = timer.getMethod().getParameterTypes()[i].getName();
                    }
                    if (doesTimeoutMethodMatch(entity.getTimeoutMethod(), methodName, params)) {

                        //the timers have the same method.
                        //now lets make sure the schedule is the same
                        if (this.doesScheduleMatch(entity.getScheduleExpression(), timer.getScheduleExpression())) {
                            it.remove();
                            found = true;
                            break;
                        }
                    }
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

            if (ineligibleTimerStates.contains(persistedTimer.getTimerState())) {
                continue;
            }
            TimerImpl activeTimer;
            if (persistedTimer.isCalendarTimer()) {
                final CalendarTimerEntity calendarTimerEntity = (CalendarTimerEntity) persistedTimer;
                // create a timer instance from the persisted calendar timer
                activeTimer = new CalendarTimer(calendarTimerEntity, this);
            } else {
                // create the timer instance from the persisted state
                activeTimer = new TimerImpl(persistedTimer, this);
View Full Code Here

Examples of org.jboss.as.ejb3.timerservice.persistence.CalendarTimerEntity

    /**
     * Creates and return a new persistent state of this timer
     */
    @Override
    protected TimerEntity createPersistentState() {
        return new CalendarTimerEntity(this);
    }
View Full Code Here

Examples of org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity

    * Creates and return a new persistent state of this timer
    */
   @Override
   protected TimerEntity createPersistentState()
   {
      return new CalendarTimerEntity(this);
   }
View Full Code Here

Examples of org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity

      for (TimerEntity persistedTimer : persistedTimers)
      {
         TimerImpl activeTimer = null;
         if (persistedTimer.isCalendarTimer())
         {
            CalendarTimerEntity calendarTimerEntity = (CalendarTimerEntity) persistedTimer;
            // create a timer instance from the persisted calendar timer
            activeTimer = new CalendarTimer(calendarTimerEntity, this);
         }
         else
         {
View Full Code Here

Examples of org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity

      for (TimerEntity persistedTimer : persistedTimers)
      {
         TimerImpl activeTimer = null;
         if (persistedTimer.isCalendarTimer())
         {
            CalendarTimerEntity calendarTimerEntity = (CalendarTimerEntity) persistedTimer;
            // create a timer instance from the persisted calendar timer
            activeTimer = new CalendarTimer(calendarTimerEntity, this);
         }
         else
         {
View Full Code Here

Examples of org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity

    * Creates and return a new persistent state of this timer
    */
   @Override
   protected TimerEntity createPersistentState()
   {
      return new CalendarTimerEntity(this);
   }
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.