aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-10 15:01:01 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-13 13:54:03 +0100
commit6fa3d925c688fa8e67480c7a69ded9f86aba5326 (patch)
tree11f4baac39111ae6822f945faf344e88b99dec7c /server/sonar-ce
parent857d12fa9909a5b5fde7a42f231b0b8d42e50303 (diff)
downloadsonarqube-6fa3d925c688fa8e67480c7a69ded9f86aba5326.tar.gz
sonarqube-6fa3d925c688fa8e67480c7a69ded9f86aba5326.zip
SONAR-8816 automatic election of web leader in cluster mode
Diffstat (limited to 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrier.java30
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrierFactory.java33
2 files changed, 0 insertions, 63 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrier.java b/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrier.java
deleted file mode 100644
index 4113242273c..00000000000
--- a/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrier.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.ce.app;
-
-interface StartupBarrier {
- /**
- * This blocking call, waits for a process (or anything) to be operational until either it is actually operational, or
- * the calling thread is interrupted.
- *
- * @return true if what's awaited for is operational, false otherwise
- */
- boolean waitForOperational();
-}
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrierFactory.java b/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrierFactory.java
deleted file mode 100644
index 278f89a408d..00000000000
--- a/server/sonar-ce/src/main/java/org/sonar/ce/app/StartupBarrierFactory.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.ce.app;
-
-import org.sonar.process.ProcessEntryPoint;
-import org.sonar.process.ProcessProperties;
-
-class StartupBarrierFactory {
-
- public StartupBarrier create(ProcessEntryPoint entryPoint) {
- if (entryPoint.getProps().valueAsBoolean(ProcessProperties.CLUSTER_WEB_DISABLED)) {
- return () -> true;
- }
- return new WebServerBarrier(entryPoint.getSharedDir());
- }
-}