diff options
author | Alain Kermis <alain.kermis@sonarsource.com> | 2024-07-09 16:16:42 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-07-24 20:02:47 +0000 |
commit | 8d858dd3b7c87e5a39d8031d527a723d5191ba53 (patch) | |
tree | 17a3f81c1e4eb3e8727a3c3eb682a7d07088493a /server/sonar-webserver/src | |
parent | 0bd5289a0f535e88aba1b83fb18053671b50f8b8 (diff) | |
download | sonarqube-8d858dd3b7c87e5a39d8031d527a723d5191ba53.tar.gz sonarqube-8d858dd3b7c87e5a39d8031d527a723d5191ba53.zip |
SONAR-22479 Refactored new telemetry model
Diffstat (limited to 'server/sonar-webserver/src')
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java | 12 | ||||
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryVersionProvider.java | 8 | ||||
-rw-r--r-- | server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryVersionProviderTest.java (renamed from server/sonar-webserver/src/test/java/org/sonar/server/telemetry/TelemetryVersionProviderTest.java) | 6 |
3 files changed, 14 insertions, 12 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java index 44b54cd1ad1..c37fa753d5e 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java @@ -282,12 +282,12 @@ import org.sonar.server.webhook.WebhookQGChangeEventListener; import org.sonar.server.webhook.ws.WebhooksWsModule; import org.sonar.server.ws.WebServiceEngine; import org.sonar.server.ws.ws.WebServicesWsModule; -import org.sonar.telemetry.deprecated.CloudUsageDataProvider; -import org.sonar.telemetry.deprecated.QualityProfileDataProvider; -import org.sonar.telemetry.deprecated.TelemetryClient; -import org.sonar.telemetry.deprecated.TelemetryDaemon; -import org.sonar.telemetry.deprecated.TelemetryDataJsonWriter; -import org.sonar.telemetry.deprecated.TelemetryDataLoaderImpl; +import org.sonar.telemetry.legacy.CloudUsageDataProvider; +import org.sonar.telemetry.legacy.QualityProfileDataProvider; +import org.sonar.telemetry.legacy.TelemetryClient; +import org.sonar.telemetry.legacy.TelemetryDaemon; +import org.sonar.telemetry.legacy.TelemetryDataJsonWriter; +import org.sonar.telemetry.legacy.TelemetryDataLoaderImpl; import static org.sonar.core.extension.CoreExtensionsInstaller.noAdditionalSideFilter; import static org.sonar.core.extension.PlatformLevelPredicates.hasPlatformLevel4OrNone; diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryVersionProvider.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryVersionProvider.java index 12b0f40c17a..d76962b7cea 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryVersionProvider.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/telemetry/TelemetryVersionProvider.java @@ -20,10 +20,10 @@ package org.sonar.server.platform.telemetry; import org.sonar.api.platform.Server; -import org.sonar.server.telemetry.Dimension; -import org.sonar.server.telemetry.Granularity; -import org.sonar.server.telemetry.TelemetryDataProvider; -import org.sonar.server.telemetry.TelemetryDataType; +import org.sonar.telemetry.Dimension; +import org.sonar.telemetry.Granularity; +import org.sonar.telemetry.TelemetryDataProvider; +import org.sonar.telemetry.TelemetryDataType; public class TelemetryVersionProvider implements TelemetryDataProvider<String> { diff --git a/server/sonar-webserver/src/test/java/org/sonar/server/telemetry/TelemetryVersionProviderTest.java b/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryVersionProviderTest.java index 4335f71f9a6..d5ea987eb6d 100644 --- a/server/sonar-webserver/src/test/java/org/sonar/server/telemetry/TelemetryVersionProviderTest.java +++ b/server/sonar-webserver/src/test/java/org/sonar/server/platform/telemetry/TelemetryVersionProviderTest.java @@ -17,11 +17,13 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -package org.sonar.server.telemetry; +package org.sonar.server.platform.telemetry; import org.junit.jupiter.api.Test; import org.sonar.api.platform.Server; -import org.sonar.server.platform.telemetry.TelemetryVersionProvider; +import org.sonar.telemetry.Dimension; +import org.sonar.telemetry.Granularity; +import org.sonar.telemetry.TelemetryDataType; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; |