diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-03-22 12:34:35 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-03-22 14:24:58 +0100 |
commit | eec3233505be2d6d9cc95c9bfc8359b91572ac51 (patch) | |
tree | 7a700eed9c8421e7ccb7ab9bd5aadda320948cd0 /server/sonar-process | |
parent | 8c6e13559916396668b7ca453213016b951a39e2 (diff) | |
download | sonarqube-eec3233505be2d6d9cc95c9bfc8359b91572ac51.tar.gz sonarqube-eec3233505be2d6d9cc95c9bfc8359b91572ac51.zip |
fix quality flaws
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java b/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java index d22a6ba1050..a3b0b8364c9 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/AllProcessesCommands.java @@ -52,8 +52,10 @@ import static org.sonar.process.ProcessCommands.MAX_PROCESSES; * <ul> * <li>First byte contains {@link #EMPTY} until process is UP and writes {@link #UP}</li> * <li>Second byte contains {@link #EMPTY} until any process requests current one to stop by writing value {@link #STOP}</li> - * <li>Third byte contains {@link #EMPTY} until any process requests current one to restart by writing value {@link #RESTART}. Process acknowledges restart by writing back {@link #EMPTY}</li> - * <li>Fourth byte will always contain {@link #EMPTY} unless process declares that it is operational by writing {@link #OPERATIONAL}. This does not imply that is done starting.</li> + * <li>Third byte contains {@link #EMPTY} until any process requests current one to restart by writing value {@link #RESTART}. + * Process acknowledges restart by writing back {@link #EMPTY}</li> + * <li>Fourth byte will always contain {@link #EMPTY} unless process declares that it is operational by writing {@link #OPERATIONAL}. + * This does not imply that is done starting.</li> * <li>The next 8 bytes contains a long (value of {@link System#currentTimeMillis()}) which represents the date of the last ping</li> * </ul> * </p> @@ -76,7 +78,7 @@ public class AllProcessesCommands { private static final byte UP = (byte) 0x01; private static final byte EMPTY = (byte) 0x00; - //VisibleForTesting + // VisibleForTesting final MappedByteBuffer mappedByteBuffer; private final RandomAccessFile sharedMemory; |