Examples of TimeoutMethod


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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw MESSAGES.failToFindTimeoutMethod(timeoutMethodInfo);
            }
        } else {
View Full Code Here

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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw MESSAGES.failToFindTimeoutMethod(timeoutMethodInfo);
            }
        } else {
View Full Code Here

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

            final String clazz = resultSet.getString(21);
            final String methodName = resultSet.getString(22);
            if (methodName != null) {
                final String paramString = resultSet.getString(23);
                final String[] params = paramString == null || paramString.isEmpty() ? new String[0] : paramString.split(";");
                final Method timeoutMethod = CalendarTimer.getTimeoutMethod(new TimeoutMethod(clazz, methodName, params), timerService.getTimedObjectInvoker().getValue().getClassLoader());
                if (timeoutMethod == null) {
                    EjbLogger.ROOT_LOGGER.timerReinstatementFailed(resultSet.getString(2), resultSet.getString(1), new NoSuchMethodException());
                }
                cb.setTimeoutMethod(timeoutMethod);
            }
View Full Code Here

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

                        }
                        if (loadableElements.primaryKey != null) {
                            builder.setPrimaryKey(deserialize(loadableElements.primaryKey));
                        }
                        if (loadableElements.className != null) {
                            builder.setTimeoutMethod(CalendarTimer.getTimeoutMethod(new TimeoutMethod(loadableElements.className, loadableElements.methodName, loadableElements.params.toArray(new String[loadableElements.params.size()])), classLoader));
                        }
                        timers.add(builder.build(timerService));
                    } catch (Exception e) {
                        EjbLogger.ROOT_LOGGER.timerReinstatementFailed(builder.getTimedObjectId(), builder.getId(), e);
                    }
View Full Code Here

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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw MESSAGES.failToFindTimeoutMethod(timeoutMethodInfo);
            }
        } else {
View Full Code Here

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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw MESSAGES.failToFindTimeoutMethod(timeoutMethodInfo);
            }
        } else {
View Full Code Here

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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw MESSAGES.failToFindTimeoutMethod(timeoutMethodInfo);
            }
        } else {
View Full Code Here

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

      this.nextExpiration = persistedCalendarTimer.getNextDate();
      // auto-timer related attributes
      if (persistedCalendarTimer.isAutoTimer())
      {
         this.autoTimer = true;
         TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
         this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
         if (this.timeoutMethod == null)
         {
            throw new IllegalStateException("Could not find timeout method: " + timeoutMethodInfo);
         }
View Full Code Here

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

      this.nextExpiration = persistedCalendarTimer.getNextDate();
      // auto-timer related attributes
      if (persistedCalendarTimer.isAutoTimer())
      {
         this.autoTimer = true;
         TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
         this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
         if (this.timeoutMethod == null)
         {
            throw new IllegalStateException("Could not find timeout method: " + timeoutMethodInfo);
         }
View Full Code Here

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

        // set the next expiration (which will be available in the persistent state)
        this.nextExpiration = persistedCalendarTimer.getNextDate();
        // auto-timer related attributes
        if (persistedCalendarTimer.isAutoTimer()) {
            this.autoTimer = true;
            TimeoutMethod timeoutMethodInfo = persistedCalendarTimer.getTimeoutMethod();
            this.timeoutMethod = this.getTimeoutMethod(timeoutMethodInfo);
            if (this.timeoutMethod == null) {
                throw new IllegalStateException("Could not find timeout method: " + timeoutMethodInfo);
            }
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.