]> source.dussan.org Git - sonarqube.git/commit
SONAR-6732 CE must load Settings from DB for each worker
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 16 Mar 2016 12:42:31 +0000 (13:42 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 21 Mar 2016 15:44:05 +0000 (16:44 +0100)
commit37e32de9c0fb62c14bff9f750332324d542c9cee
treec0798dc7fd73405849f74f6dd196294bc7598eda
parenta9a7a8a7a6b0b0aa1b59db3206c668cbf129da7e
SONAR-6732 CE must load Settings from DB for each worker

renamed ServerSettings to WebServerSettings and extract from it a ServerSetting interface to be able to easily provide separte implementations for Web Server and CE)
CE Server implementation is called ComputeEngineSettings which supports loading up to date Settings for a specific worker using delegation and a ThreadLocal
16 files changed:
server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
server/sonar-server/src/main/java/org/sonar/ce/settings/ComputeEngineSettings.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/ce/settings/ThreadLocalSettings.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/ce/settings/package-info.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/container/ReportComputeEngineContainerPopulator.java
server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/report/ReportTaskProcessor.java
server/sonar-server/src/main/java/org/sonar/server/platform/PersistentSettings.java
server/sonar-server/src/main/java/org/sonar/server/platform/ServerSettings.java
server/sonar-server/src/main/java/org/sonar/server/platform/WebServerSettings.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java
server/sonar-server/src/test/java/org/sonar/server/permission/ws/template/SetDefaultTemplateActionTest.java
server/sonar-server/src/test/java/org/sonar/server/platform/PersistentSettingsTest.java
server/sonar-server/src/test/java/org/sonar/server/platform/ServerSettingsTest.java
sonar-core/src/main/java/org/sonar/core/platform/ComponentContainer.java
sonar-plugin-api/src/main/java/org/sonar/api/config/Settings.java