Exemplo n.º 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();
      }
    }
Exemplo n.º 2
0
 public void remove(String clusterName) {
   stop(clusterName);
   execute(CCM_COMMAND + " remove " + clusterName);
 }
Exemplo n.º 3
0
 public void remove() {
   stop();
   execute(CCM_COMMAND + " remove");
 }