diff options
Diffstat (limited to 'common-app-api')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java | 6 |
1 files changed, 6 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 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<String> 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; } |