use of com.hazelcast.config.MapConfig in project hazelcast by hazelcast.
the class InvalidationMemberAddRemoveTest method createMapConfig.
protected MapConfig createMapConfig(String mapName) {
MapConfig mapConfig = new MapConfig(mapName);
mapConfig.setBackupCount(0);
return mapConfig;
}
use of com.hazelcast.config.MapConfig in project hazelcast by hazelcast.
the class MapInvalidationMetaDataMigrationTest method newConfig.
protected Config newConfig(String mapName) {
NearCacheConfig nearCacheConfig = new NearCacheConfig();
nearCacheConfig.setInMemoryFormat(getNearCacheInMemoryFormat());
nearCacheConfig.setName(mapName);
nearCacheConfig.setInvalidateOnChange(true);
nearCacheConfig.setCacheLocalEntries(true);
MapConfig mapConfig = new MapConfig(mapName);
mapConfig.setNearCacheConfig(nearCacheConfig);
mapConfig.setBackupCount(0).setAsyncBackupCount(0);
Config config = getConfig();
return config.addMapConfig(mapConfig);
}
use of com.hazelcast.config.MapConfig in project hazelcast by hazelcast.
the class TransactionalMapWriteQuorumTest method initialize.
@BeforeClass
public static void initialize() throws Exception {
QuorumConfig quorumConfig = new QuorumConfig();
quorumConfig.setEnabled(true);
quorumConfig.setSize(3);
quorumConfig.setName(QUORUM_ID);
quorumConfig.setType(QuorumType.WRITE);
MapConfig mapConfig = new MapConfig(MAP_NAME_PREFIX + "*");
mapConfig.setQuorumName(QUORUM_ID);
cluster = new PartitionedCluster(new TestHazelcastInstanceFactory()).partitionFiveMembersThreeAndTwo(mapConfig, quorumConfig);
}
use of com.hazelcast.config.MapConfig in project hazelcast by hazelcast.
the class TransactionalMapReadWriteQuorumTest method initialize.
@BeforeClass
public static void initialize() throws Exception {
QuorumConfig quorumConfig = new QuorumConfig();
quorumConfig.setEnabled(true);
quorumConfig.setSize(3);
quorumConfig.setName(QUORUM_ID);
quorumConfig.setType(QuorumType.READ_WRITE);
MapConfig mapConfig = new MapConfig(MAP_NAME_PREFIX + "*");
mapConfig.setQuorumName(QUORUM_ID);
cluster = new PartitionedCluster(new TestHazelcastInstanceFactory()).partitionFiveMembersThreeAndTwo(mapConfig, quorumConfig);
}
use of com.hazelcast.config.MapConfig in project hazelcast by hazelcast.
the class ConfigValidatorTest method checkMapConfig_withIgnoredConfigMinEvictionCheckMillis.
@Test
@SuppressWarnings("deprecation")
public void checkMapConfig_withIgnoredConfigMinEvictionCheckMillis() {
MapConfig mapConfig = getMapConfig(BINARY).setMinEvictionCheckMillis(100);
checkMapConfig(mapConfig);
}
Aggregations