onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r1610212 - /onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java
Date Sun, 13 Jul 2014 14:31:36 GMT
Author: ash2k
Date: Sun Jul 13 14:31:35 2014
New Revision: 1610212

URL: http://svn.apache.org/r1610212
Log:
Allow to get warmup stager from module

Modified:
    onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java

Modified: onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java
URL: http://svn.apache.org/viewvc/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java?rev=1610212&r1=1610211&r2=1610212&view=diff
==============================================================================
--- onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java
(original)
+++ onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpModule.java
Sun Jul 13 14:31:35 2014
@@ -22,6 +22,7 @@ package org.apache.onami.lifecycle.warmu
 import java.util.concurrent.TimeUnit;
 
 import org.apache.onami.lifecycle.core.LifeCycleStageModule;
+import org.apache.onami.lifecycle.core.Stager;
 
 /**
  * The module for preparing for warm ups.
@@ -32,10 +33,16 @@ public class WarmUpModule
 
     private static final long DEFAULT_WAIT_MS = TimeUnit.DAYS.toMillis( Integer.MAX_VALUE
);    // essentially forever
 
+    private final WarmUper<WarmUp> stager = new WarmUper<WarmUp>( WarmUp.class,
DEFAULT_WAIT_MS );
+
     @Override
     protected void configureBindings()
     {
-        WarmUper<WarmUp> stager = new WarmUper<WarmUp>( WarmUp.class, DEFAULT_WAIT_MS
);
         bindStager( stager ).mappingWith( stager );
     }
+
+    public Stager<WarmUp> getStager()
+    {
+        return stager;
+    }
 }



Mime
View raw message