mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2986 - JMX and store percent usage
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1023795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4cd23e35d
commit
51ef021073
|
@ -58,4 +58,12 @@ public class StoreUsage extends Usage<StoreUsage> {
|
|||
this.store = store;
|
||||
onLimitChange();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPercentUsage() {
|
||||
synchronized (usageMutex) {
|
||||
percentUsage = caclPercentUsage();
|
||||
return super.getPercentUsage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue