Search in sources :

Example 1 with StartupMetadataProvider

use of org.sonar.server.platform.StartupMetadataProvider in project sonarqube by SonarSource.

the class PlatformLevel2 method configureLevel.

@Override
protected void configureLevel() {
    add(new MigrationConfigurationModule(), DatabaseVersion.class, DatabaseServerCompatibility.class, MigrationEsClientImpl.class, new StartupMetadataProvider(), DefaultServerUpgradeStatus.class, Durations.class, // index.html cache
    WebPagesCache.class, // plugins
    PluginJarLoader.class, ServerPluginRepository.class, ServerPluginManager.class, ServerPluginJarExploder.class, PluginClassLoader.class, PluginCompressor.class, PluginClassloaderFactory.class, InstalledPluginReferentialFactory.class, WebServerExtensionInstaller.class, // depends on plugins
    ServerI18n.class, OfficialDistribution.class);
    // Migration state must be kept at level2 to survive moving in and then out of safe mode
    // ExecutorService must be kept at level2 because stopping it when stopping safe mode level causes error making SQ fail
    add(DatabaseMigrationStateImpl.class, DatabaseMigrationExecutorServiceImpl.class);
    addIfStartupLeader(DatabaseCharsetChecker.class, CheckDatabaseCharsetAtStartup.class);
}
Also used : MigrationConfigurationModule(org.sonar.server.platform.db.migration.MigrationConfigurationModule) StartupMetadataProvider(org.sonar.server.platform.StartupMetadataProvider)

Aggregations

StartupMetadataProvider (org.sonar.server.platform.StartupMetadataProvider)1 MigrationConfigurationModule (org.sonar.server.platform.db.migration.MigrationConfigurationModule)1