diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-30 16:30:36 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-05 14:24:13 +0200 |
commit | c9f779dc009b42cf8e1bc5c5a335462be0c3e971 (patch) | |
tree | 54d206fef7d3ab76d5ca7fa91a0d8eceed318882 /server/sonar-main | |
parent | 0e2b5bb24f1fcead00fd32e459c8756c7f9342e5 (diff) | |
download | sonarqube-c9f779dc009b42cf8e1bc5c5a335462be0c3e971.tar.gz sonarqube-c9f779dc009b42cf8e1bc5c5a335462be0c3e971.zip |
SONAR-9715 improve documentation of process management
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/process/ProcessLauncherImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/process/ProcessLauncherImpl.java b/server/sonar-main/src/main/java/org/sonar/application/process/ProcessLauncherImpl.java index 3c2816474a7..af17e5ff80b 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/process/ProcessLauncherImpl.java +++ b/server/sonar-main/src/main/java/org/sonar/application/process/ProcessLauncherImpl.java @@ -44,7 +44,7 @@ import static java.lang.String.format; import static org.sonar.process.ProcessEntryPoint.PROPERTY_PROCESS_INDEX; import static org.sonar.process.ProcessEntryPoint.PROPERTY_PROCESS_KEY; import static org.sonar.process.ProcessEntryPoint.PROPERTY_SHARED_PATH; -import static org.sonar.process.ProcessEntryPoint.PROPERTY_TERMINATION_TIMEOUT; +import static org.sonar.process.ProcessEntryPoint.PROPERTY_TERMINATION_TIMEOUT_MS; public class ProcessLauncherImpl implements ProcessLauncher { private static final Logger LOG = LoggerFactory.getLogger(ProcessLauncherImpl.class); @@ -182,7 +182,7 @@ public class ProcessLauncherImpl implements ProcessLauncher { props.putAll(javaCommand.getArguments()); props.setProperty(PROPERTY_PROCESS_KEY, javaCommand.getProcessId().getKey()); props.setProperty(PROPERTY_PROCESS_INDEX, Integer.toString(javaCommand.getProcessId().getIpcIndex())); - props.setProperty(PROPERTY_TERMINATION_TIMEOUT, "60000"); + props.setProperty(PROPERTY_TERMINATION_TIMEOUT_MS, "60000"); props.setProperty(PROPERTY_SHARED_PATH, tempDir.getAbsolutePath()); try (OutputStream out = new FileOutputStream(propertiesFile)) { props.store(out, format("Temporary properties file for command [%s]", javaCommand.getProcessId().getKey())); |