public String getS3EndPoint() { String region = getDC(); String s3Url = null; if (US_EAST_1_REGION.equals(region)) { s3Url = config.get(CONFIG_US_EAST_1_S3_ENDPOINT); return StringUtils.isBlank(s3Url) ? DEFAULT_US_EAST_1_S3_ENDPOINT : s3Url; } if (US_WEST_1_REGION.equals(region)) { s3Url = config.get(CONFIG_US_WEST_1_S3_ENDPOINT); return StringUtils.isBlank(s3Url) ? DEFAULT_US_WEST_1_S3_ENDPOINT : s3Url; } if (US_WEST_2_REGION.equals(region)) { s3Url = config.get(CONFIG_US_WEST_2_S3_ENDPOINT); return StringUtils.isBlank(s3Url) ? DEFAULT_US_WEST_2_S3_ENDPOINT : s3Url; } if (EU_WEST_1_REGION.equals(region)) { s3Url = config.get(CONFIG_EU_WEST_1_S3_ENDPOINT); return StringUtils.isBlank(s3Url) ? DEFAULT_EU_WEST_1_S3_ENDPOINT : s3Url; } if (SA_EAST_1_REGION.equals(region)) { s3Url = config.get(CONFIG_SA_EAST_1_S3_ENDPOINT); return StringUtils.isBlank(s3Url) ? DEFAULT_SA_EAST_1_S3_ENDPOINT : s3Url; } return null; }
@Override public void setRestoreKeySpaces(List<String> keyspaces) { if (keyspaces == null) return; StringBuilder sb = new StringBuilder(); for (int i = 0; i < keyspaces.size(); i++) { if (i > 0) sb.append(","); sb.append(keyspaces.get(i)); } config.set(CONFIG_RESTORE_KEYSPACES, sb.toString()); }
public String getYamlLocation() { return config.get(CONFIG_YAML_LOCATION, getCassHome() + "/conf/cassandra.yaml"); }
public String getExtraConfigParams() { return config.get(CONFIG_EXTRA_PARAMS); }
public String getRpcServerType() { return config.get(CONFIG_RPC_SERVER_TYPE, DEFAULT_RPC_SERVER_TYPE); }
public int getConcurrentWritesCnt() { return config.get(CONFIG_CONCURRENT_WRITES, 32); }
public boolean isThriftEnabled() { return config.get(CONFIG_THRIFT_ENABLED, true); }
public String getInternodeEncryption() { return config.get(CONFIG_INTERNODE_ENCRYPTION, "none"); }
@Override public void setRestorePrefix(String prefix) { config.set(CONFIG_RESTORE_PREFIX, prefix); }
public String getInternodeCompression() { return config.get(CONFIG_INTERNODE_COMPRESSION, DEFAULT_INTERNODE_COMPRESSION); }
@Override public boolean doesCassandraStartManually() { return config.get(CONFIG_CASS_MANUAL_START_ENABLE, false); }
@Override public String getTargetCFName() { return config.get(CONFIG_TARGET_COLUMN_FAMILY_NAME); }
public String getTargetKSName() { return config.get(CONFIG_TARGET_KEYSPACE_NAME); }
public String getAuthorizer() { return config.get(CONFIG_AUTHORIZER, DEFAULT_AUTHORIZER); }
public String getAuthenticator() { return config.get(CONFIG_AUTHENTICATOR, DEFAULT_AUTHENTICATOR); }
@Override public boolean isBackingUpCommitLogs() { return config.get(CONFIG_COMMITLOG_BKUP_ENABLED, false); }
public boolean isClientSslEnabled() { return config.get(CONFIG_CLIENT_SSL_ENABLED, false); }
@Override public String getCommitLogBackupArchiveCmd() { return config.get(CONFIG_COMMITLOG_ARCHIVE_CMD, "/bin/ln %path /mnt/data/backup/%name"); }
public boolean isDynamicSnitchEnabled() { return config.get(CONFIG_DSNITCH_ENABLED, true); }
@Override public String getCommitLogBackupRestoreCmd() { return config.get(CONFIG_COMMITLOG_RESTORE_CMD, "/bin/mv %from %to"); }
public boolean isNativeTransportEnabled() { return config.get(CONFIG_NATIVE_PROTOCOL_ENABLED, false); }
@Override public String getCommitLogBackupRestoreFromDirs() { return config.get(CONFIG_COMMITLOG_RESTORE_DIRS, "/mnt/data/backup/commitlog/"); }
public int getConcurrentReadsCnt() { return config.get(CONFIG_CONCURRENT_READS, 32); }
@Override public String getCommitLogBackupRestorePointInTime() { return config.get(CONFIG_COMMITLOG_RESTORE_POINT_IN_TIME, ""); }
public int getConcurrentCompactorsCnt() { int cpus = Runtime.getRuntime().availableProcessors(); return config.get(CONFIG_CONCURRENT_COMPACTORS, cpus); }
@Override public int maxCommitLogsRestore() { return config.get(CONFIG_COMMITLOG_RESTORE_MAX, 10); }
public int getIndexInterval() { return config.get(CONFIG_INDEX_INTERVAL, DEFAULT_INDEX_INTERVAL); }
@Override public boolean isVpcRing() { return config.get(CONFIG_VPC_RING, false); }
public String getCassYamlVal(String priamKey) { return config.get(priamKey); }
public int getNumTokens() { return config.get(CONFIG_VNODE_NUM_TOKENS, DEFAULT_VNODE_NUM_TOKENS); }