openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1800468 - /openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
Date Fri, 30 Jun 2017 21:22:05 GMT
Author: rmannibucau
Date: Fri Jun 30 21:22:05 2017
New Revision: 1800468

URL: http://svn.apache.org/viewvc?rev=1800468&view=rev
Log:
fixing ReloadOnChangeController marking logic

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java?rev=1800468&r1=1800467&r2=1800468&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/watching/ReloadOnChangeController.java
Fri Jun 30 21:22:05 2017
@@ -47,7 +47,7 @@ public class ReloadOnChangeController im
     private Thread bouncer;
     private Thread watcher;
     private volatile boolean running = true;
-    private volatile long redeployMarker = System.currentTimeMillis();
+    private volatile long redeployMarker = System.nanoTime();
 
     public ReloadOnChangeController(final Context context, final int watcherBouncing) {
         this.context = context;
@@ -139,6 +139,7 @@ public class ReloadOnChangeController im
                 }
 
                 if (needsRedeploy && last == antepenultiem) {
+                    new LogFacade(ReloadOnChangeController.class.getName()).info("Redeploying
" + context.getName());
                     redeploy();
                 }
             }
@@ -197,6 +198,7 @@ public class ReloadOnChangeController im
                 }
 
                 if (foundNew) {
+                    new LogFacade(ReloadOnChangeController.class.getName()).info("Marking
to redeploy " + context.getName());
                     redeployMarker = System.nanoTime();
                 }
 



Mime
View raw message