[jboss-cvs] contrib/varia/src/main/org/jboss/varia/scheduler ...

Dimitris Andreadis dimitris.andreadis at jboss.com
Fri Jul 14 02:50:18 EDT 2006


  User: dimitris
  Date: 06/07/14 02:50:18

  Modified:    varia/src/main/org/jboss/varia/scheduler  Scheduler.java
  Log:
  JBAS-3282, add FixedRate attribute.
   The default JMX Timer scheduling behaviour of FixedDelay execution
   (as of JDK5 or JBoss v4.0.5) is overriden in the config using FixedRate true
  
  Revision  Changes    Path
  1.17      +3 -3      contrib/varia/src/main/org/jboss/varia/scheduler/Scheduler.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Scheduler.java
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/varia/src/main/org/jboss/varia/scheduler/Scheduler.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- Scheduler.java	13 Jul 2006 19:53:58 -0000	1.16
  +++ Scheduler.java	14 Jul 2006 06:50:18 -0000	1.17
  @@ -35,8 +35,8 @@
   import javax.management.timer.TimerNotification;
   
   import org.jboss.logging.Logger;
  -import org.jboss.mx.loading.ClassLoaderUtils;
   import org.jboss.system.ServiceMBeanSupport;
  +import org.jboss.util.Classes;
   
   /**
    * Scheduler Instance to allow clients to run this as a scheduling service for
  @@ -50,7 +50,7 @@
    *
    * @author <a href="mailto:andreas at jboss.org">Andreas Schaefer</a>
    * @author Cameron (camtabor)
  - * @version $Revision: 1.16 $
  + * @version $Revision: 1.17 $
    */
   public class Scheduler extends ServiceMBeanSupport
      implements SchedulerMBean
  @@ -519,9 +519,9 @@
               String msg = "Given class " + pSchedulableClass + " is not instance of Schedulable";
               StringBuffer info = new StringBuffer(msg);
               info.append("\nThe SchedulableClass info:");
  -            ClassLoaderUtils.displayClassInfo(mSchedulableClass, info);
  +            Classes.displayClassInfo(mSchedulableClass, info);
               info.append("\nSchedulable.class info:");
  -            ClassLoaderUtils.displayClassInfo(Schedulable.class, info);
  +            Classes.displayClassInfo(Schedulable.class, info);
               log.debug(info.toString());
               throw new InvalidParameterException(msg);
            }
  
  
  



More information about the jboss-cvs-commits mailing list