Search in sources :

Example 1 with Teardown

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();
}
Also used : ITopic(com.hazelcast.core.ITopic) Teardown(com.hazelcast.simulator.test.annotations.Teardown)

Example 2 with Teardown

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();
    }
}
Also used : IExecutorService(com.hazelcast.core.IExecutorService) Teardown(com.hazelcast.simulator.test.annotations.Teardown)

Example 3 with Teardown

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();
}
Also used : CardinalityEstimator(com.hazelcast.cardinality.CardinalityEstimator) Teardown(com.hazelcast.simulator.test.annotations.Teardown)

Example 4 with Teardown

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));
}
Also used : IAtomicLong(com.hazelcast.core.IAtomicLong) Teardown(com.hazelcast.simulator.test.annotations.Teardown)

Aggregations

Teardown (com.hazelcast.simulator.test.annotations.Teardown)4 CardinalityEstimator (com.hazelcast.cardinality.CardinalityEstimator)1 IAtomicLong (com.hazelcast.core.IAtomicLong)1 IExecutorService (com.hazelcast.core.IExecutorService)1 ITopic (com.hazelcast.core.ITopic)1