示例#1
0
  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;
  }
示例#2
0
 @Override
 public String getCassProcessName() {
   return config.get(CONFIG_CASS_PROCESS_NAME, DEFAULT_CASS_PROCESS_NAME);
 }
示例#3
0
 public String getExtraConfigParams() {
   return config.get(CONFIG_EXTRA_PARAMS);
 }
示例#4
0
 public String getRpcServerType() {
   return config.get(CONFIG_RPC_SERVER_TYPE, DEFAULT_RPC_SERVER_TYPE);
 }
示例#5
0
 public int getConcurrentWritesCnt() {
   return config.get(CONFIG_CONCURRENT_WRITES, 32);
 }
示例#6
0
 public String getInternodeEncryption() {
   return config.get(CONFIG_INTERNODE_ENCRYPTION, "none");
 }
示例#7
0
 public boolean isThriftEnabled() {
   return config.get(CONFIG_THRIFT_ENABLED, true);
 }
示例#8
0
 @Override
 public String getTargetCFName() {
   return config.get(CONFIG_TARGET_COLUMN_FAMILY_NAME);
 }
示例#9
0
 @Override
 public boolean doesCassandraStartManually() {
   return config.get(CONFIG_CASS_MANUAL_START_ENABLE, false);
 }
示例#10
0
 public String getAuthorizer() {
   return config.get(CONFIG_AUTHORIZER, DEFAULT_AUTHORIZER);
 }
示例#11
0
 public String getTargetKSName() {
   return config.get(CONFIG_TARGET_KEYSPACE_NAME);
 }
示例#12
0
 public String getAuthenticator() {
   return config.get(CONFIG_AUTHENTICATOR, DEFAULT_AUTHENTICATOR);
 }
示例#13
0
 public String getYamlLocation() {
   return config.get(CONFIG_YAML_LOCATION, getCassHome() + "/conf/cassandra.yaml");
 }
示例#14
0
 public int getNumTokens() {
   return config.get(CONFIG_VNODE_NUM_TOKENS, DEFAULT_VNODE_NUM_TOKENS);
 }
示例#15
0
 @Override
 public boolean isVpcRing() {
   return config.get(CONFIG_VPC_RING, false);
 }
示例#16
0
 public String getInternodeCompression() {
   return config.get(CONFIG_INTERNODE_COMPRESSION, DEFAULT_INTERNODE_COMPRESSION);
 }
示例#17
0
 public boolean isClientSslEnabled() {
   return config.get(CONFIG_CLIENT_SSL_ENABLED, false);
 }
示例#18
0
 @Override
 public boolean isBackingUpCommitLogs() {
   return config.get(CONFIG_COMMITLOG_BKUP_ENABLED, false);
 }
示例#19
0
 public boolean isDynamicSnitchEnabled() {
   return config.get(CONFIG_DSNITCH_ENABLED, true);
 }
示例#20
0
 @Override
 public String getCommitLogBackupArchiveCmd() {
   return config.get(CONFIG_COMMITLOG_ARCHIVE_CMD, "/bin/ln %path /mnt/data/backup/%name");
 }
示例#21
0
 public boolean isNativeTransportEnabled() {
   return config.get(CONFIG_NATIVE_PROTOCOL_ENABLED, false);
 }
示例#22
0
 @Override
 public String getCommitLogBackupRestoreCmd() {
   return config.get(CONFIG_COMMITLOG_RESTORE_CMD, "/bin/mv %from %to");
 }
示例#23
0
 public int getConcurrentReadsCnt() {
   return config.get(CONFIG_CONCURRENT_READS, 32);
 }
示例#24
0
 @Override
 public String getCommitLogBackupRestoreFromDirs() {
   return config.get(CONFIG_COMMITLOG_RESTORE_DIRS, "/mnt/data/backup/commitlog/");
 }
示例#25
0
 public int getConcurrentCompactorsCnt() {
   int cpus = Runtime.getRuntime().availableProcessors();
   return config.get(CONFIG_CONCURRENT_COMPACTORS, cpus);
 }
示例#26
0
 @Override
 public String getCommitLogBackupRestorePointInTime() {
   return config.get(CONFIG_COMMITLOG_RESTORE_POINT_IN_TIME, "");
 }
示例#27
0
 public int getIndexInterval() {
   return config.get(CONFIG_INDEX_INTERVAL, DEFAULT_INDEX_INTERVAL);
 }
示例#28
0
 @Override
 public int maxCommitLogsRestore() {
   return config.get(CONFIG_COMMITLOG_RESTORE_MAX, 10);
 }
示例#29
0
 public String getCassYamlVal(String priamKey) {
   return config.get(priamKey);
 }
示例#30
0
 public String getRowCacheKeysToSave() {
   return config.get(CONFIG_ROWCACHE_COUNT);
 }