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(); } }
public void remove(String clusterName) { stop(clusterName); execute(CCM_COMMAND + " remove " + clusterName); }
public void remove() { stop(); execute(CCM_COMMAND + " remove"); }