use of com.hazelcast.simulator.test.annotations.Teardown in project hazelcast-simulator by hazelcast.
the class ITopicTest method teardown.
@Teardown
public void teardown() {
for (ITopic topic : topics) {
topic.destroy();
}
totalExpectedCounter.destroy();
totalFoundCounter.destroy();
}
use of com.hazelcast.simulator.test.annotations.Teardown in project hazelcast-simulator by hazelcast.
the class ExecutorTest method teardown.
@Teardown(global = true)
public void teardown() throws Exception {
executedCounter.destroy();
expectedExecutedCounter.destroy();
for (IExecutorService executor : executors) {
executor.shutdownNow();
if (!executor.awaitTermination(120, TimeUnit.SECONDS)) {
logger.fatal("Time out while waiting for shutdown of executor: " + executor.getName());
}
executor.destroy();
}
}
use of com.hazelcast.simulator.test.annotations.Teardown in project hazelcast-simulator by hazelcast.
the class CardinalityEstimatorTest method teardown.
@Teardown(global = true)
public void teardown() {
for (CardinalityEstimator estimator : estimators) {
estimator.destroy();
}
expectedCountMap.destroy();
totalThreadCount.destroy();
threadIdGenerator.destroy();
}
use of com.hazelcast.simulator.test.annotations.Teardown in project hazelcast-simulator by hazelcast.
the class AsyncAtomicLongTest method teardown.
@Teardown
public void teardown() {
if (isMemberNode(targetInstance)) {
for (IAtomicLong counter : counters) {
counter.destroy();
}
}
totalCounter.destroy();
logger.info(getOperationCountInformation(targetInstance));
}
Aggregations