use of com.hazelcast.config.EventJournalConfig in project hazelcast by hazelcast.
the class AbstractEventJournalBasicTest method getConfig.
@Override
protected Config getConfig() {
int defaultPartitionCount = Integer.parseInt(ClusterProperty.PARTITION_COUNT.getDefaultValue());
EventJournalConfig eventJournalConfig = new EventJournalConfig().setEnabled(true).setCapacity(500 * defaultPartitionCount);
Config config = super.getConfig();
config.getMapConfig("default").setEventJournalConfig(eventJournalConfig);
config.getCacheConfig("default").setEventJournalConfig(eventJournalConfig);
return config;
}
use of com.hazelcast.config.EventJournalConfig in project hazelcast by hazelcast.
the class MapEventJournalBounceTest method getConfig.
@Override
protected Config getConfig() {
Config config = super.getConfig();
config.getMapConfig(TEST_MAP_NAME).setEventJournalConfig(new EventJournalConfig().setEnabled(true).setCapacity(10000));
return config;
}
use of com.hazelcast.config.EventJournalConfig in project hazelcast-jet by hazelcast.
the class WindowAggregateTransform_IntegrationTest method before.
@Before
public void before() {
JetConfig config = new JetConfig();
config.getHazelcastConfig().addEventJournalConfig(new EventJournalConfig().setMapName("source*").setEnabled(true));
config.getHazelcastConfig().setProperty(GroupProperty.PARTITION_COUNT.getName(), "1");
instance = createJetMember(config);
}
use of com.hazelcast.config.EventJournalConfig in project hazelcast-jet by hazelcast.
the class WindowGroupTransform_IntegrationTest method before.
@Before
public void before() {
JetConfig config = new JetConfig();
config.getHazelcastConfig().addEventJournalConfig(new EventJournalConfig().setMapName("source*").setEnabled(true));
config.getHazelcastConfig().setProperty(GroupProperty.PARTITION_COUNT.getName(), "1");
instance = createJetMember(config);
}
use of com.hazelcast.config.EventJournalConfig in project hazelcast-jet by hazelcast.
the class HazelcastRemoteConnectorTest method setUp.
@BeforeClass
public static void setUp() {
JetConfig jetConfig = new JetConfig();
Config hazelcastConfig = jetConfig.getHazelcastConfig();
hazelcastConfig.addCacheConfig(new CacheSimpleConfig().setName("*"));
jet = factory.newMember(jetConfig);
JetInstance jet2 = factory.newMember(jetConfig);
Config config = new Config();
config.addCacheConfig(new CacheSimpleConfig().setName("*"));
config.addEventJournalConfig(new EventJournalConfig().setCacheName("default").setMapName("default"));
config.getGroupConfig().setName(randomName());
hz = Hazelcast.newHazelcastInstance(config);
HazelcastInstance hz2 = Hazelcast.newHazelcastInstance(config);
clientConfig = new ClientConfig();
clientConfig.getGroupConfig().setName(config.getGroupConfig().getName());
Address address = hz.getCluster().getLocalMember().getAddress();
clientConfig.getNetworkConfig().addAddress(address.getHost() + ':' + address.getPort());
// workaround for `cache is not created` exception, create cache locally on all nodes
hz2.getCacheManager().getCache(SOURCE_NAME);
hz2.getCacheManager().getCache(SINK_NAME);
jet2.getCacheManager().getCache(SOURCE_NAME);
jet2.getCacheManager().getCache(SINK_NAME);
}
Aggregations