config.putAll(achillesConfigParams);
return config;
}
private TypedMap buildConfigMap() {
TypedMap config = new TypedMap();
config.put(CLEAN_CASSANDRA_DATA_FILES, cleanDataFiles);
config.put(CLEAN_CASSANDRA_CONFIG_FILE, cleanConfigFile);
if (StringUtils.isNotBlank(dataFileFolder))
config.put(DATA_FILE_FOLDER, dataFileFolder);
if (StringUtils.isNotBlank(commitLogFolder))
config.put(COMMIT_LOG_FOLDER, commitLogFolder);
if (StringUtils.isNotBlank(savedCachesFolder))
config.put(SAVED_CACHES_FOLDER, savedCachesFolder);
if (StringUtils.isNotBlank(configYamlFile))
config.put(CONFIG_YAML_FILE, configYamlFile);
if (StringUtils.isNotBlank(clusterName))
config.put(CLUSTER_NAME, clusterName);
if (cqlPort > 0)
config.put(CASSANDRA_CQL_PORT, cqlPort);
if (thriftPort > 0)
config.put(CASSANDRA_THRIFT_PORT, thriftPort);
if (storagePort > 0)
config.put(CASSANDRA_STORAGE_PORT, storagePort);
if (storageSSLPort > 0)
config.put(CASSANDRA_STORAGE_SSL_PORT, storageSSLPort);
config.put(KEYSPACE_DURABLE_WRITE, durableWrite);
config.put(BUILD_NATIVE_SESSION_ONLY, buildNativeSessionOnly);
TypedMap parameters = CassandraEmbeddedConfigParameters.mergeWithDefaultParameters(config);
return parameters;
}