@Test public void derivePartitioner_BOPPartitionerInConfig() { String partitioner = tuner.derivePartitioner(RANDOM_PARTITIONER, BOP_PARTITIONER); assertEquals(BOP_PARTITIONER, partitioner); }
String derivePartitioner(String fromYaml, String fromConfig) { if (fromYaml == null || fromYaml.isEmpty()) return fromConfig; final String lowerCase = fromYaml.toLowerCase(); if (lowerCase.contains("randomparti") || lowerCase.contains("murmur")) return fromConfig; return fromYaml; }
StandardTuner implements ICassandraTuner { String derivePartitioner(String fromYaml, String fromConfig) { if (fromYaml == null || fromYaml.isEmpty()) return fromConfig; final String lowerCase = fromYaml.toLowerCase(); if (lowerCase.contains("randomparti") || lowerCase.contains("murmur")) return fromConfig; return fromYaml; } }
StandardTuner implements ICassandraTuner { String derivePartitioner(String fromYaml, String fromConfig) { if (fromYaml == null || fromYaml.isEmpty()) return fromConfig; final String lowerCase = fromYaml.toLowerCase(); if (lowerCase.contains("randomparti") || lowerCase.contains("murmur")) return fromConfig; return fromYaml; } @Inject  StandardTuner(
            IConfiguration config,
            IBackupRestoreConfig backupRestoreConfig,
            InstanceInfo instanceInfo); }
StandardTuner implements ICassandraTuner { String derivePartitioner(String fromYaml, String fromConfig) { if (fromYaml == null || fromYaml.isEmpty()) return fromConfig; final String lowerCase = fromYaml.toLowerCase(); if (lowerCase.contains("randomparti") || lowerCase.contains("murmur")) return fromConfig; return fromYaml; } @Inject  StandardTuner(
            IConfiguration config,
            IBackupRestoreConfig backupRestoreConfig,
            InstanceInfo instanceInfo); @SuppressWarnings("unchecked") void writeAllProperties(String yamlLocation, String hostname, String seedProvider); void updateAutoBootstrap(String yamlFile, boolean autobootstrap); @Override final void updateJVMOptions(); void addExtraCassParams(Map map); }
StandardTuner implements ICassandraTuner { String derivePartitioner(String fromYaml, String fromConfig) { if (fromYaml == null || fromYaml.isEmpty()) return fromConfig; final String lowerCase = fromYaml.toLowerCase(); if (lowerCase.contains("randomparti") || lowerCase.contains("murmur")) return fromConfig; return fromYaml; } @Inject  StandardTuner(
            IConfiguration config,
            IBackupRestoreConfig backupRestoreConfig,
            InstanceInfo instanceInfo); @SuppressWarnings("unchecked") void writeAllProperties(String yamlLocation, String hostname, String seedProvider); void updateAutoBootstrap(String yamlFile, boolean autobootstrap); @Override final void updateJVMOptions(); void addExtraCassParams(Map map);  }