activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1023795 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java
Date Mon, 18 Oct 2010 13:38:27 GMT
Author: dejanb
Date: Mon Oct 18 13:38:26 2010
New Revision: 1023795

URL: http://svn.apache.org/viewvc?rev=1023795&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2986 - JMX and store percent usage

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java?rev=1023795&r1=1023794&r2=1023795&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java Mon
Oct 18 13:38:26 2010
@@ -58,4 +58,12 @@ public class StoreUsage extends Usage<St
         this.store = store;
         onLimitChange();
     }
+
+    @Override
+    public int getPercentUsage() {
+        synchronized (usageMutex) {
+            percentUsage = caclPercentUsage();
+            return super.getPercentUsage();
+        }
+    }
 }



Mime
View raw message