import org.sonar.server.view.index.ViewIndex;
public final class ReportComputeEngineContainerPopulator implements ContainerPopulator<ComputeEngineContainer> {
+ private static final ReportAnalysisComponentProvider[] NO_REPORT_ANALYSIS_COMPONENT_PROVIDERS = new ReportAnalysisComponentProvider[0];
+
private final CeTask task;
private final ReportAnalysisComponentProvider[] componentProviders;
public ReportComputeEngineContainerPopulator(CeTask task, @Nullable ReportAnalysisComponentProvider[] componentProviders) {
this.task = task;
- this.componentProviders = componentProviders == null ? new ReportAnalysisComponentProvider[0] : componentProviders;
+ this.componentProviders = componentProviders == null ? NO_REPORT_ANALYSIS_COMPONENT_PROVIDERS : componentProviders;
}
@Override
*/
package org.sonar.server.computation.queue;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.platform.Server;
import org.sonar.api.platform.ServerStartHandler;
-import org.sonar.api.ce.ComputeEngineSide;
-import org.sonar.ce.monitoring.CEQueueStatus;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
import org.sonar.server.computation.taskprocessor.CeProcessingScheduler;
/**
* Part of the current HTTP session
*/
-public class ServerUserSession extends AbstractUserSession<ServerUserSession>
- implements UserSession {
+public class ServerUserSession extends AbstractUserSession<ServerUserSession> {
private Map<String, String> projectKeyByComponentKey = newHashMap();