Search in sources :

Example 1 with ProcessEntryPoint

use of org.sonar.process.ProcessEntryPoint in project sonarqube by SonarSource.

the class HttpProcess method main.

public static void main(String[] args) {
    ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args);
    entryPoint.launch(new HttpProcess(entryPoint.getProps().valueAsInt("httpPort"), entryPoint.getCommands()));
}
Also used : ProcessEntryPoint(org.sonar.process.ProcessEntryPoint)

Example 2 with ProcessEntryPoint

use of org.sonar.process.ProcessEntryPoint in project sonarqube by SonarSource.

the class SearchServer method main.

public static void main(String... args) {
    ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args);
    new SearchLogging().configure(entryPoint.getProps());
    SearchServer searchServer = new SearchServer(entryPoint.getProps());
    entryPoint.launch(searchServer);
}
Also used : ProcessEntryPoint(org.sonar.process.ProcessEntryPoint)

Example 3 with ProcessEntryPoint

use of org.sonar.process.ProcessEntryPoint in project sonarqube by SonarSource.

the class CeServer method main.

/**
 * Can't be started as is. Needs to be bootstrapped by sonar-application
 */
public static void main(String[] args) {
    ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args);
    Props props = entryPoint.getProps();
    new CeProcessLogging().configure(props);
    CeServer server = new CeServer(new ComputeEngineImpl(props, new ComputeEngineContainerImpl()), new MinimumViableSystem(), new CeSecurityManager(new PluginSecurityManager(), props));
    entryPoint.launch(server);
}
Also used : ComputeEngineContainerImpl(org.sonar.ce.container.ComputeEngineContainerImpl) ProcessEntryPoint(org.sonar.process.ProcessEntryPoint) CeProcessLogging(org.sonar.ce.logging.CeProcessLogging) MinimumViableSystem(org.sonar.process.MinimumViableSystem) Props(org.sonar.process.Props) ComputeEngineImpl(org.sonar.ce.ComputeEngineImpl) PluginSecurityManager(org.sonar.process.PluginSecurityManager)

Example 4 with ProcessEntryPoint

use of org.sonar.process.ProcessEntryPoint in project sonarqube by SonarSource.

the class InfiniteTerminationProcess method main.

public static void main(String[] args) {
    ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args);
    entryPoint.launch(new InfiniteTerminationProcess());
}
Also used : ProcessEntryPoint(org.sonar.process.ProcessEntryPoint)

Example 5 with ProcessEntryPoint

use of org.sonar.process.ProcessEntryPoint in project sonarqube by SonarSource.

the class WebServer method main.

/**
 * Can't be started as is. Needs to be bootstrapped by sonar-application
 */
public static void main(String[] args) {
    ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args);
    Props props = entryPoint.getProps();
    new WebServerProcessLogging().configure(props);
    new WebSecurityManager(new PluginSecurityManager(), props).apply();
    WebServer server = new WebServer(props);
    entryPoint.launch(server);
}
Also used : ProcessEntryPoint(org.sonar.process.ProcessEntryPoint) Props(org.sonar.process.Props) PluginSecurityManager(org.sonar.process.PluginSecurityManager)

Aggregations

ProcessEntryPoint (org.sonar.process.ProcessEntryPoint)6 PluginSecurityManager (org.sonar.process.PluginSecurityManager)2 Props (org.sonar.process.Props)2 ComputeEngineImpl (org.sonar.ce.ComputeEngineImpl)1 ComputeEngineContainerImpl (org.sonar.ce.container.ComputeEngineContainerImpl)1 CeProcessLogging (org.sonar.ce.logging.CeProcessLogging)1 MinimumViableSystem (org.sonar.process.MinimumViableSystem)1