Search in sources :

Example 26 with EventJournalConfig

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;
}
Also used : EventJournalConfig(com.hazelcast.config.EventJournalConfig) Config(com.hazelcast.config.Config) EventJournalConfig(com.hazelcast.config.EventJournalConfig)

Example 27 with EventJournalConfig

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;
}
Also used : Config(com.hazelcast.config.Config) EventJournalConfig(com.hazelcast.config.EventJournalConfig) EventJournalConfig(com.hazelcast.config.EventJournalConfig)

Example 28 with EventJournalConfig

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);
}
Also used : JetConfig(com.hazelcast.jet.config.JetConfig) EventJournalConfig(com.hazelcast.config.EventJournalConfig) Before(org.junit.Before)

Example 29 with EventJournalConfig

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);
}
Also used : JetConfig(com.hazelcast.jet.config.JetConfig) EventJournalConfig(com.hazelcast.config.EventJournalConfig) Before(org.junit.Before)

Example 30 with EventJournalConfig

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);
}
Also used : CacheSimpleConfig(com.hazelcast.config.CacheSimpleConfig) HazelcastInstance(com.hazelcast.core.HazelcastInstance) Address(com.hazelcast.nio.Address) EventJournalConfig(com.hazelcast.config.EventJournalConfig) CacheSimpleConfig(com.hazelcast.config.CacheSimpleConfig) ClientConfig(com.hazelcast.client.config.ClientConfig) Config(com.hazelcast.config.Config) JetConfig(com.hazelcast.jet.config.JetConfig) JetInstance(com.hazelcast.jet.JetInstance) ClientConfig(com.hazelcast.client.config.ClientConfig) JetConfig(com.hazelcast.jet.config.JetConfig) EventJournalConfig(com.hazelcast.config.EventJournalConfig) BeforeClass(org.junit.BeforeClass)

Aggregations

EventJournalConfig (com.hazelcast.config.EventJournalConfig)32 Config (com.hazelcast.config.Config)13 CacheSimpleConfig (com.hazelcast.config.CacheSimpleConfig)10 JetConfig (com.hazelcast.jet.config.JetConfig)9 Before (org.junit.Before)9 MapConfig (com.hazelcast.config.MapConfig)6 MergePolicyConfig (com.hazelcast.config.MergePolicyConfig)6 AttributeConfig (com.hazelcast.config.AttributeConfig)5 IndexConfig (com.hazelcast.config.IndexConfig)5 MapStoreConfig (com.hazelcast.config.MapStoreConfig)5 MultiMapConfig (com.hazelcast.config.MultiMapConfig)5 NearCacheConfig (com.hazelcast.config.NearCacheConfig)5 AwsConfig (com.hazelcast.config.AwsConfig)4 CardinalityEstimatorConfig (com.hazelcast.config.CardinalityEstimatorConfig)4 DiscoveryConfig (com.hazelcast.config.DiscoveryConfig)4 DiscoveryStrategyConfig (com.hazelcast.config.DiscoveryStrategyConfig)4 DiskTierConfig (com.hazelcast.config.DiskTierConfig)4 DurableExecutorConfig (com.hazelcast.config.DurableExecutorConfig)4 EntryListenerConfig (com.hazelcast.config.EntryListenerConfig)4 EvictionConfig (com.hazelcast.config.EvictionConfig)4