synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u...@apache.org
Subject svn commit: r611047 - in /webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz: SimpleQuartz.java SimpleQuartzFactory.java SimpleQuartzSerializer.java
Date Fri, 11 Jan 2008 04:52:07 GMT
Author: upul
Date: Thu Jan 10 20:52:06 2008
New Revision: 611047

URL: http://svn.apache.org/viewvc?rev=611047&view=rev
Log:
converted task interval from milliseconds to SECONDS

Modified:
    webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
    webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java
    webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java

Modified: webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java?rev=611047&r1=611046&r2=611047&view=diff
==============================================================================
--- webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
(original)
+++ webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
Thu Jan 10 20:52:06 2008
@@ -66,7 +66,7 @@
     
     private String cron;
     private int repeatCount = -1;
-    private long repeatInterval;
+    private long repeatInterval; // in milliseconds
     private String className;
     private List pinnedServers;
     private Scheduler sch;

Modified: webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java?rev=611047&r1=611046&r2=611047&view=diff
==============================================================================
--- webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java
(original)
+++ webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java
Thu Jan 10 20:52:06 2008
@@ -145,7 +145,9 @@
                         "a simple trigger, but no interval specified");
                 } else if (repeatInterval != null && repeatInterval.getAttributeValue()
!= null) {
                     try {
-                        q.setInterval(Long.parseLong(repeatInterval.getAttributeValue()));
+                        long repeatIntervalInSeconds = Long.parseLong(repeatInterval.getAttributeValue());
+                        long repeatIntervalInMillis = repeatIntervalInSeconds * 1000;
+                        q.setInterval(repeatIntervalInMillis);
                     } catch (Exception e) {
                         handleException("Failed to parse trigger interval as a long value",
e);
                     }

Modified: webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java?rev=611047&r1=611046&r2=611047&view=diff
==============================================================================
--- webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java
(original)
+++ webservices/synapse/branches/1.1.1/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java
Thu Jan 10 20:52:06 2008
@@ -75,7 +75,8 @@
             }
 
             if (sq.getInterval() != 0) {
-                el.addAttribute("interval", Long.toString(sq.getInterval()), nullNS);
+                long interval = sq.getInterval() / 1000;
+                el.addAttribute("interval", Long.toString(interval), nullNS);
             }
         }
         



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message