aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-dev-cockpit-bridge
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-11-18 14:49:06 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-11-19 14:16:44 +0100
commit240cf9f64ff0d7aa1e94f4fdeeb449f48141bcb0 (patch)
tree3d22200623705904da1a78ac936f72724e908a9b /server/sonar-dev-cockpit-bridge
parentcd03d464226228b66e76bee952484ddb05d29a05 (diff)
downloadsonarqube-240cf9f64ff0d7aa1e94f4fdeeb449f48141bcb0.tar.gz
sonarqube-240cf9f64ff0d7aa1e94f4fdeeb449f48141bcb0.zip
SONAR-7027 Add PersistDeveloperStep
Diffstat (limited to 'server/sonar-dev-cockpit-bridge')
-rw-r--r--server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/DevCockpitBridge.java6
-rw-r--r--server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/PersistDevelopersDelegate.java30
2 files changed, 36 insertions, 0 deletions
diff --git a/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/DevCockpitBridge.java b/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/DevCockpitBridge.java
index 9b330693a2c..9c37b04aa03 100644
--- a/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/DevCockpitBridge.java
+++ b/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/DevCockpitBridge.java
@@ -19,6 +19,7 @@
*/
package org.sonar.server.devcockpit;
+import java.util.List;
import org.sonar.core.platform.ComponentContainer;
/**
@@ -41,4 +42,9 @@ public interface DevCockpitBridge {
*/
void stopDevCockpit();
+ /**
+ * Return the list of components to add to the state-full container of a Compute Engine report analysis task
+ */
+ List<Object> getCeComponents();
+
}
diff --git a/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/PersistDevelopersDelegate.java b/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/PersistDevelopersDelegate.java
new file mode 100644
index 00000000000..d0c2dee1113
--- /dev/null
+++ b/server/sonar-dev-cockpit-bridge/src/main/java/org/sonar/server/devcockpit/PersistDevelopersDelegate.java
@@ -0,0 +1,30 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube 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.
+ *
+ * SonarQube 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.server.devcockpit;
+
+/**
+ * This interface is used to delegate the persistence of developers to the Developer Cockpit plugin
+ */
+public interface PersistDevelopersDelegate {
+
+ void execute();
+
+}