Search in sources :

Example 1 with ServerLifecycleNotifier

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

the class ComputeEngineContainerImpl method startupTasks.

private void startupTasks() {
    ComponentContainer startupLevel = this.level4.createChild();
    startupLevel.add(startupComponents());
    startupLevel.startComponents();
    // done in PlatformLevelStartup
    ServerLifecycleNotifier serverLifecycleNotifier = startupLevel.getComponentByType(ServerLifecycleNotifier.class);
    if (serverLifecycleNotifier != null) {
        serverLifecycleNotifier.notifyStart();
    }
    startupLevel.stopComponents();
}
Also used : ComponentContainer(org.sonar.core.platform.ComponentContainer) ServerLifecycleNotifier(org.sonar.server.platform.ServerLifecycleNotifier)

Aggregations

ComponentContainer (org.sonar.core.platform.ComponentContainer)1 ServerLifecycleNotifier (org.sonar.server.platform.ServerLifecycleNotifier)1