Package org.jboss.varia.scheduler

Examples of org.jboss.varia.scheduler.SingleScheduleProviderMBean


     registered(ex);
     registered(manager);
     registered(provider);

                 // JBAS-8382 if (now - startDate) > Integer.MAX_VALUE and period == 1, then skip repeats can be negative and it causes wrong (too much) repetition
                 SingleScheduleProviderMBean pr = (SingleScheduleProviderMBean)
                     MBeanServerInvocationHandler.newProxyInstance(getServer(), provider,
                     SingleScheduleProviderMBean.class, false);
                 pr.setStartDate(String.valueOf(System.currentTimeMillis() - Integer.MAX_VALUE - 1));
                 pr.stop();
                 pr.start();

     Thread.sleep(1000); // just wait for a while
     check(ex, 0, 0); // No repetitions left because start date is in the past and could not be reached by Initial Repetitions * Schedule Period
    
      }
View Full Code Here

TOP

Related Classes of org.jboss.varia.scheduler.SingleScheduleProviderMBean

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.