From d03d20a800a41dc04e70803ae2c6851bfb9948b9 Mon Sep 17 00:00:00 2001 From: Idan Amit Date: Thu, 15 Mar 2018 18:07:16 +0200 Subject: Add timeout and connection status Added timeout and connection status to the plugins configuration. Added support in ui to display a temporary error screen in case a plugin in offline Change-Id: Id4a0909cc704903be6183f22c67caec6f5050103 Issue-ID: SDC-1081 Signed-off-by: Idan Amit --- .../openecomp/sdc/fe/config/PluginsConfiguration.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'common-app-api/src/main/java/org') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java index 7865abd3da..3dbf31ba18 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java @@ -9,6 +9,7 @@ import org.openecomp.sdc.common.api.BasicConfiguration; public class PluginsConfiguration extends BasicConfiguration { private List pluginsList; + private Integer connectionTimeout; public List getPluginsList() { return pluginsList; @@ -18,6 +19,14 @@ public class PluginsConfiguration extends BasicConfiguration { this.pluginsList = pluginsList; } + public Integer getConnectionTimeout() { + return connectionTimeout; + } + + public void setConnectionTimeout(Integer connectionTimeout) { + this.connectionTimeout = connectionTimeout; + } + public PluginsConfiguration() { this.pluginsList = new ArrayList<>(); } @@ -29,6 +38,7 @@ public class PluginsConfiguration extends BasicConfiguration { private String pluginSourceUrl; private String pluginStateUrl; private Map pluginDisplayOptions; + private boolean isOnline; public String getPluginId() { return pluginId; @@ -70,6 +80,14 @@ public class PluginsConfiguration extends BasicConfiguration { this.pluginDisplayOptions = pluginDisplayOptions; } + public boolean isOnline() { + return isOnline; + } + + public void setOnline(boolean online) { + isOnline = online; + } + } public static class PluginDisplayOptions { -- cgit 1.2.3-korg