You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2010/10/18 15:38:27 UTC
svn commit: r1023795 -
/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/usage/StoreUsage.java
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();
+ }
+ }
}