[utilities COMMIT] /java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadable...

noreply at shibboleth.net noreply at shibboleth.net
Tue Feb 10 13:15:35 EST 2015


Author: rdw
Date: Tue Feb 10 13:15:35 2015
New Revision: 744

URL: http://svn.shibboleth.net/view/utilities?rev=744&view=rev
Log:
Fix variable name.
Setup lastReloadInstant on initial load.

Modified:
    java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadableService.java

Modified: java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadableService.java
URL: http://svn.shibboleth.net/view/utilities/java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadableService.java?rev=744&r1=743&r2=744&view=diff
==============================================================================
--- java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadableService.java (original)
+++ java-support/trunk/src/main/java/net/shibboleth/utilities/java/support/service/AbstractReloadableService.java Tue Feb 10 13:15:35 2015
@@ -65,7 +65,7 @@
     @Nullable private DateTime lastReloadInstant;
 
     /** The last time the service was reloaded successfully. */
-    @Nullable private DateTime lastSuccessfulReleaseIntant;
+    @Nullable private DateTime lastSuccessfulReleaseInstant;
 
     /** The cause of the last reload failure, if the last reload failed. */
     @Nullable private Throwable reloadFailureCause;
@@ -136,7 +136,7 @@
 
     /** {@inheritDoc} */
     @Override @Nullable public DateTime getLastSuccessfulReloadInstant() {
-        return lastSuccessfulReleaseIntant;
+        return lastSuccessfulReleaseInstant;
     }
 
     /** {@inheritDoc} */
@@ -170,7 +170,8 @@
         log.info("{} Performing initial load", getLogPrefix());
         try {
             doReload();
-            lastSuccessfulReleaseIntant = new DateTime(ISOChronology.getInstanceUTC());
+            lastSuccessfulReleaseInstant = new DateTime(ISOChronology.getInstanceUTC());
+            lastReloadInstant = lastSuccessfulReleaseInstant;
         } catch (final ServiceException e) {
             if (isFailFast()) {
                 throw new ComponentInitializationException(getLogPrefix() + " could not perform initial load", e);
@@ -220,7 +221,7 @@
 
         try {
             doReload();
-            lastSuccessfulReleaseIntant = now;
+            lastSuccessfulReleaseInstant = now;
             reloadFailureCause = null;
         } catch (final ServiceException e) {
             log.error("{} Reload for {} failed", getLogPrefix(), getId(), e);



More information about the commits mailing list