use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.
the class MapStoreTest method globalVerify.
@Verify
public void globalVerify() {
MapOperationCounter total = new MapOperationCounter();
for (MapOperationCounter operationCounter : operationCounterList) {
total.add(operationCounter);
}
logger.info(name + ": " + total + " from " + operationCounterList.size() + " worker threads");
}
use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.
the class MapTTLTest method globalVerify.
@Verify
public void globalVerify() {
MapOperationCounter total = new MapOperationCounter();
for (MapOperationCounter counter : results) {
total.add(counter);
}
logger.info(name + ": " + total + " total of " + results.size());
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(name + ": Map should be empty, some TTL events are not processed", 0, map.size());
}
});
}
use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.
the class ReplicatedTTL method localVerify.
@Verify(global = false)
public void localVerify() {
MapOperationCounter total = new MapOperationCounter();
for (MapOperationCounter counter : results) {
total.add(counter);
}
logger.info(name + ": " + total + " total of " + results.size());
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
logger.info(name + ": " + "assert map Size = " + map.size());
assertEquals(name + ": Replicated Map should be empty, some TTL events are not processed", 0, map.size());
}
});
}
use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.
the class MapAsyncOpsTest method globalVerify.
@Verify(global = true)
public void globalVerify() {
MapOperationCounter totalMapOperationsCount = new MapOperationCounter();
for (MapOperationCounter mapOperationsCount : results) {
totalMapOperationsCount.add(mapOperationsCount);
}
logger.info(name + ": " + totalMapOperationsCount + " total of " + results.size());
}
Aggregations