incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1564404 - /sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java
Date Tue, 04 Feb 2014 18:12:08 GMT
Author: stefanegli
Date: Tue Feb  4 18:12:07 2014
New Revision: 1564404

URL: http://svn.apache.org/r1564404
Log:
SLING-3371 : add more details to webconsole - including detail on expired announcements

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java?rev=1564404&r1=1564403&r2=1564404&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java
(original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/topology/announcement/Announcement.java
Tue Feb  4 18:12:07 2014
@@ -188,6 +188,10 @@ public class Announcement {
         final long diff = now - created;
         return diff > 1000 * config.getHeartbeatTimeout();
     }
+    
+    public Date getCreated() {
+        return new Date(created);
+    }
 
     /** Convert this announcement into a json object **/
     public JSONObject asJSONObject() throws JSONException {



Mime
View raw message