qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oru...@apache.org
Subject svn commit: r1770348 - /qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java
Date Fri, 18 Nov 2016 09:27:14 GMT
Author: orudyy
Date: Fri Nov 18 09:27:14 2016
New Revision: 1770348

URL: http://svn.apache.org/viewvc?rev=1770348&view=rev
Log:
QPID-7525: [Java Broker] Invoke attribute methods on initialisation of reporting in Broker

Modified:
    qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java

Modified: qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java?rev=1770348&r1=1770347&r2=1770348&view=diff
==============================================================================
--- qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java
(original)
+++ qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/model/BrokerImpl.java
Fri Nov 18 09:27:14 2016
@@ -426,8 +426,8 @@ public class BrokerImpl extends Abstract
 
     private void initialiseStatisticsReporting()
     {
-        long report = ((Number)getAttribute(Broker.STATISTICS_REPORTING_PERIOD)).intValue()
* 1000; // convert to ms
-        final boolean reset = (Boolean)getAttribute(Broker.STATISTICS_REPORTING_RESET_ENABLED);
+        long report = getStatisticsReportingPeriod() * 1000L; // convert to ms
+        final boolean reset = getStatisticsReportingResetEnabled();
 
         /* add a timer task to report statistics if generation is enabled for broker or virtualhosts
*/
         if (report > 0L)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message