public void stop() { logger.debug("Stopping ScassandraCluster."); for (Scassandra node : instances) { node.stop(); } }
@AfterClass(groups = {"short", "long"}) public void afterTestClass() { if (scassandra != null) scassandra.stop(); }
/** * Stops a node by id and then asserts that its {@link Host} is marked down for the given {@link * Cluster} instance within 10 seconds. * * @param cluster cluster to wait for down status on. * @param node Node to stop. */ public void stop(Cluster cluster, int node) { logger.debug("Stopping node {}.", node); Scassandra scassandra = node(node); scassandra.stop(); assertThat(cluster).host(node).goesDownWithin(10, TimeUnit.SECONDS); }
} finally { if (cluster != null) cluster.close(); scassandra.stop();
if (cluster != null) cluster.close(); for (FakeHost fakeHost : failingHosts) fakeHost.stop(); if (scassandra != null) scassandra.stop();
public void stop() { logger.debug("Stopping ScassandraCluster."); for (Scassandra node : instances) { node.stop(); } }
@AfterClass(groups = {"short", "long"}) public void afterTestClass() { if (scassandra != null) scassandra.stop(); }
scassandra.node(1).stop(); assertThat(cluster).host(1).goesDownWithin(10, TimeUnit.SECONDS);
/** * Stops a node by id and then asserts that its {@link Host} is marked down for the given {@link * Cluster} instance within 10 seconds. * * @param cluster cluster to wait for down status on. * @param node Node to stop. */ public void stop(Cluster cluster, int node) { logger.debug("Stopping node {}.", node); Scassandra scassandra = node(node); scassandra.stop(); assertThat(cluster).host(node).goesDownWithin(10, TimeUnit.SECONDS); }
@Override public void evaluate() throws Throwable { if (!started) { started = true; scassandra.start(); try { base.evaluate(); } finally { scassandra.stop(); started = false; } } else { primingClient().clearAllPrimes(); activityClient().clearAllRecordedActivity(); base.evaluate(); } } };
} finally { if (cluster != null) cluster.close(); scassandra.stop();
if (cluster != null) cluster.close(); for (FakeHost fakeHost : failingHosts) fakeHost.stop(); if (scassandra != null) scassandra.stop();
scassandra.node(1).stop(); assertThat(cluster).host(1).goesDownWithin(10, TimeUnit.SECONDS);