commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nico...@apache.org
Subject svn commit: r745064 - /commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
Date Tue, 17 Feb 2009 13:42:12 GMT
Author: nicolas
Date: Tue Feb 17 13:42:11 2009
New Revision: 745064

URL: http://svn.apache.org/viewvc?rev=745064&view=rev
Log:
acces to the period value

Modified:
    commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java

Modified: commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java?rev=745064&r1=745063&r2=745064&view=diff
==============================================================================
--- commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
(original)
+++ commons/sandbox/monitoring/branches/modules/reporting/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
Tue Feb 17 13:42:11 2009
@@ -37,7 +37,7 @@
     /** The observed repository */
     private Repository.Observable repository;
 
-    /** The observed repository */
+    /** The observer repository during the active period */
     private ObserverRepository secondary;
 
     /** The interval for periodic logging of monitored state */
@@ -156,4 +156,9 @@
         this.delay = TimeUnit.MILLISECONDS.convert( delay, unit );
     }
 
+    public long getPeriod()
+    {
+        return period;
+    }
+
 }



Mime
View raw message