]> source.dussan.org Git - sonarqube.git/commit
SONAR-6995 CEQueueStatus get method should not modify state 672/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 3 Dec 2015 11:29:24 +0000 (12:29 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 4 Dec 2015 09:57:30 +0000 (10:57 +0100)
commite5f5ca562f10727eead9e0de8fe1a090dea8399d
treef33372a2b411544b472c1b736f7dd347f8899172
parent61d82e55173c09592dc5bbb9474a1ae3a446be93
SONAR-6995 CEQueueStatus get method should not modify state

and they should not required the CEQueueStatusImpl object to be initialized either
this way, monitoring can query the metrics of CEQueueStatus through JMX even before the object is initialized
server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatus.java
server/sonar-server/src/main/java/org/sonar/server/computation/monitoring/CEQueueStatusImpl.java
server/sonar-server/src/test/java/org/sonar/server/computation/monitoring/CEQueueStatusImplConcurrentTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/monitoring/CEQueueStatusImplTest.java
server/sonar-server/src/test/java/org/sonar/server/computation/queue/CeQueueImplTest.java