diff options
author | Idan Amit <ia096e@intl.att.com> | 2018-03-15 18:07:16 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2018-03-18 08:39:31 +0000 |
commit | d03d20a800a41dc04e70803ae2c6851bfb9948b9 (patch) | |
tree | 680b2b345ba0628acbba175db9d9347f982aab7b /common-app-api/src/main | |
parent | de67b61f2fcd1bfc3cd6c44d9f1e66786777a238 (diff) |
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 <ia096e@intl.att.com>
Diffstat (limited to 'common-app-api/src/main')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/fe/config/PluginsConfiguration.java | 18 |
1 files changed, 18 insertions, 0 deletions
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<Plugin> pluginsList; + private Integer connectionTimeout; public List<Plugin> 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<String, PluginDisplayOptions> 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 { |