diff options
author | k.kedron <k.kedron@partner.samsung.com> | 2020-03-13 17:15:14 +0100 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-03-16 12:41:32 +0000 |
commit | 4654da998f4cd9390e2e1a02f4aa2bdf198893c0 (patch) | |
tree | d3db0f41c25d8a8eaedb53dcdcf3d780034cc472 /common-app-api/src/main | |
parent | a2abf6ea18d512d367277bacaf7476754dc0eff5 (diff) |
Remove hardcoded timeout
Added configuration for wait seconds for Cassandra connector.
Also, increase the timeout value to prevent tests failed.
Issue-ID: SDC-2759
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I1008ecce98efdd8627ac3232b35fecd2a41a9c79
Diffstat (limited to 'common-app-api/src/main')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java index 368a27ed8b..0bc0707822 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java @@ -739,6 +739,7 @@ public class Configuration extends BasicConfiguration { boolean ssl; String truststorePath; String truststorePassword; + int maxWaitSeconds = 120; public Integer getCassandraPort() { return cassandraPort != null ? cassandraPort : Configuration.CassandrConfig.CASSANDRA_DEFAULT_PORT; } @@ -832,6 +833,14 @@ public class Configuration extends BasicConfiguration { this.keySpaces = cassandraConfig; } + public int getMaxWaitSeconds() { + return maxWaitSeconds; + } + + public void setMaxWaitSeconds(int maxWaitSeconds) { + this.maxWaitSeconds = maxWaitSeconds; + } + public static class KeyspaceConfig { String name; |