commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nico...@apache.org
Subject svn commit: r647763 - /commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
Date Mon, 14 Apr 2008 12:30:50 GMT
Author: nicolas
Date: Mon Apr 14 05:30:47 2008
New Revision: 647763

URL: http://svn.apache.org/viewvc?rev=647763&view=rev
Log:
allow access to the active SecondaryRepository

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

Modified: commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java?rev=647763&r1=647762&r2=647763&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
(original)
+++ commons/sandbox/monitoring/trunk/src/main/java/org/apache/commons/monitoring/reporting/AbstractPeriodicLogger.java
Mon Apr 14 05:30:47 2008
@@ -115,4 +115,12 @@
      * @param period secondary repository that observed the monitored state during the last
active period
      */
     protected abstract void log( SecondaryRepository period ) throws IOException;
+	
+    /**
+     * @return the SecondaryRepository active for the current period.
+     */
+	protected SecondaryRepository getRepositoryForActivePeriod()
+	{
+	    return this.secondary;
+	}
 }



Mime
View raw message