use of org.sonar.server.es.EsModule in project sonarqube by SonarSource.
the class ComputeEngineContainerImpl method populateLevel1.
private static void populateLevel1(Container container, Props props, ComputeEngineStatus computeEngineStatus) {
Version apiVersion = MetadataLoader.loadVersion(System2.INSTANCE);
SonarEdition edition = MetadataLoader.loadEdition(System2.INSTANCE);
container.add(props.rawProperties(), ThreadLocalSettings.class, new ConfigurationProvider(), new SonarQubeVersion(apiVersion), SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.COMPUTE_ENGINE, edition), CeProcessLogging.class, UuidFactoryImpl.INSTANCE, NetworkUtilsImpl.INSTANCE, WebServerImpl.class, LogbackHelper.class, DefaultDatabase.class, MyBatis.class, PurgeProfiler.class, ServerFileSystemImpl.class, new TempFolderProvider(), System2.INSTANCE, Paths2Impl.getInstance(), Clock.systemDefaultZone(), // DB
new DaoModule(), ReadOnlyPropertiesDao.class, DBSessionsImpl.class, DbClient.class, // Elasticsearch
new EsModule(), // rules/qprofiles
RuleIndex.class, new OkHttpClientProvider(), computeEngineStatus, NoOpAuditPersister.class, CoreExtensionRepositoryImpl.class, CoreExtensionsLoader.class, CECoreExtensionsInstaller.class);
container.add(toArray(CorePropertyDefinitions.all()));
}
use of org.sonar.server.es.EsModule in project sonarqube by SonarSource.
the class PlatformLevel1 method configureLevel.
@Override
public void configureLevel() {
add(platform, properties);
addExtraRootComponents();
Version apiVersion = MetadataLoader.loadVersion(System2.INSTANCE);
SonarEdition edition = MetadataLoader.loadEdition(System2.INSTANCE);
add(new SonarQubeVersion(apiVersion), SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.SERVER, edition), ThreadLocalSettings.class, ConfigurationProvider.class, LogServerVersion.class, ProcessCommandWrapperImpl.class, RestartFlagHolderImpl.class, UuidFactoryImpl.INSTANCE, NetworkUtilsImpl.INSTANCE, UrlSettings.class, EmbeddedDatabaseFactory.class, LogbackHelper.class, WebServerProcessLogging.class, DefaultDatabase.class, MyBatis.class, PurgeProfiler.class, ServerFileSystemImpl.class, TempFolderCleaner.class, new TempFolderProvider(), System2.INSTANCE, Paths2Impl.getInstance(), DockerSupportImpl.class, Clock.systemDefaultZone(), // user session
ThreadLocalUserSession.class, SystemPasscodeImpl.class, // DB
DBSessionsImpl.class, DbClient.class, new DaoModule(), // Elasticsearch
WebAuthorizationTypeSupport.class, new EsModule(), // rules/qprofiles
RuleIndex.class, // issues
IssueIndex.class, IssueIndexSyncProgressChecker.class, GlobalLockManagerImpl.class, new OkHttpClientProvider(), CoreExtensionRepositoryImpl.class, CoreExtensionsLoader.class, WebCoreExtensionsInstaller.class);
addAll(CorePropertyDefinitions.all());
// cluster
add(WebServerImpl.class);
}
Aggregations