Пример #1
0
    public void discard() {
      if (cluster != null) cluster.close();

      if (cassandraCluster == null) {
        logger.error("No cluster to discard");
      } else if (erroredOut) {
        cassandraCluster.stop();
        logger.info("Error during tests, kept C* logs in " + cassandraCluster.ccmDir);
      } else {
        cassandraCluster.remove();
        cassandraCluster.ccmDir.delete();
      }
    }
Пример #2
0
 public void remove(String clusterName) {
   stop(clusterName);
   execute(CCM_COMMAND + " remove " + clusterName);
 }
Пример #3
0
 public void remove() {
   stop();
   execute(CCM_COMMAND + " remove");
 }