use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class LongSerializableCacheTest method setUp.
@Setup
public void setUp() {
CacheManager cacheManager = createCacheManager(targetInstance);
cache = cacheManager.getCache(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class AtomicReferenceTest method setup.
@Setup
public void setup() {
values = new Object[valueCount];
Random random = new Random();
for (int i = 0; i < valueCount; i++) {
if (useStringValue) {
values[i] = generateString(valueLength);
} else {
values[i] = generateByteArray(random, valueLength);
}
}
counters = getCounters();
String[] names = generateStringKeys(name, countersLength, keyLocality, targetInstance);
for (int i = 0; i < counters.length; i++) {
IAtomicReference<Object> atomicReference = targetInstance.getAtomicReference(names[i]);
atomicReference.set(values[random.nextInt(values.length)]);
counters[i] = atomicReference;
}
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class BatchingICacheTest method setup.
@Setup
public void setup() {
CacheManager cacheManager = createCacheManager(targetInstance);
cache = (ICache<Object, Object>) cacheManager.getCache(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class CasICacheTest method setup.
@Setup
public void setup() {
resultsPerWorker = targetInstance.getList(name);
CacheManager cacheManager = createCacheManager(targetInstance);
cache = cacheManager.getCache(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class PartitionServiceMBeanTest method setUp.
@Setup
public void setUp() throws Exception {
this.mBeanServer = ManagementFactory.getPlatformMBeanServer();
this.objectName = new ObjectName("com.hazelcast:instance=" + targetInstance.getName() + ",name=" + targetInstance.getName() + ",type=HazelcastInstance.PartitionServiceMBean");
}
Aggregations