use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class CacheLoaderTest method setup.
@Setup
public void setup() {
loaderList = targetInstance.getList(name + "loaders");
config = new MutableConfiguration<Integer, Integer>();
config.setReadThrough(true);
RecordingCacheLoader<Integer> recordingCacheLoader = new RecordingCacheLoader<Integer>();
recordingCacheLoader.loadAllDelayMs = loadAllDelayMs;
config.setCacheLoaderFactory(FactoryBuilder.factoryOf(recordingCacheLoader));
CacheManager cacheManager = createCacheManager(targetInstance);
cacheManager.createCache(name, config);
cache = cacheManager.getCache(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class ConcurrentCreateICacheTest method setup.
@Setup
public void setup() {
counterList = targetInstance.getList(name);
CacheConfig config = new CacheConfig();
config.setName(name);
Counter counter = new Counter();
try {
CacheManager cacheManager = createCacheManager(targetInstance);
cacheManager.createCache(name, config);
counter.create++;
} catch (CacheException e) {
logger.fatal(name + ": createCache exception " + e, e);
counter.createException++;
}
counterList.add(counter);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class EntryProcessorICacheTest method setup.
@Setup
public void setup() {
resultsPerWorker = targetInstance.getList(name + ":ResultMap");
CacheManager cacheManager = createCacheManager(targetInstance);
cache = cacheManager.getCache(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class BucketReadWriteTest method setup.
@Setup
public void setup() {
// ClusterManager clusterManager = cluster.clusterManager("Administrator", "password");
// BucketSettings bucketSettings = new DefaultBucketSettings.Builder()
// .type(BucketType.COUCHBASE)
// .name(name)
// .replicas(0)
// .quota(120)
// .build();
//
// clusterManager.insertBucket(bucketSettings);
values = generateStrings(valueCount, minValueLength, maxValueLength);
ClusterManager clusterManager = cluster.clusterManager("Administrator", "password");
for (BucketSettings b : clusterManager.getBuckets()) {
logger.info(b);
}
bucket = cluster.openBucket(name);
}
use of com.hazelcast.simulator.test.annotations.Setup in project hazelcast-simulator by hazelcast.
the class LongExternalizableCacheTest method setUp.
@Setup
public void setUp() {
CacheManager cacheManager = createCacheManager(targetInstance);
cache = cacheManager.getCache(name);
}
Aggregations