From c4d387d216e72911f80c1ebee91b73aba191b91b Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Thu, 28 Mar 2019 11:00:54 +0200 Subject: Make Cassandra port configurable. SDC-BE & Onboarding - BE. Reviewer: Evgenia A & Areli F. Change-Id: Iaf86d647b0560764ef65d9148c85bffaf934992d Issue-ID: SDC-2077 Signed-off-by: Tal Gitelman --- .../src/main/java/org/openecomp/sdc/be/config/Configuration.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common-app-api') 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 f7f9834259..6325f00f3e 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 @@ -653,8 +653,10 @@ public class Configuration extends BasicConfiguration { } public static class CassandrConfig { + private static final Integer CASSANDRA_DEFAULT_PORT = 9042; List cassandraHosts; + Integer cassandraPort; String localDataCenter; Long reconnectTimeout; Integer socketReadTimeout; @@ -667,6 +669,10 @@ public class Configuration extends BasicConfiguration { String truststorePath; String truststorePassword; + public Integer getCassandraPort() { return cassandraPort != null ? cassandraPort : Configuration.CassandrConfig.CASSANDRA_DEFAULT_PORT; } + + public void setCassandraPort(Integer cassandraPort) { this.cassandraPort = cassandraPort; } + public String getLocalDataCenter() { return localDataCenter; } -- cgit 1.2.3-korg