Search in sources :

Example 16 with CardinalityEstimatorConfig

use of com.hazelcast.config.CardinalityEstimatorConfig in project hazelcast by hazelcast.

the class DynamicConfigTest method testCardinalityEstimatorConfig.

@Test
public void testCardinalityEstimatorConfig() {
    CardinalityEstimatorConfig config = new CardinalityEstimatorConfig(name, 4, 2).setMergePolicyConfig(new MergePolicyConfig("com.hazelcast.spi.merge.DiscardMergePolicy", 20));
    driver.getConfig().addCardinalityEstimatorConfig(config);
    assertConfigurationsEqualOnAllMembers(config);
}
Also used : MergePolicyConfig(com.hazelcast.config.MergePolicyConfig) CardinalityEstimatorConfig(com.hazelcast.config.CardinalityEstimatorConfig) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

CardinalityEstimatorConfig (com.hazelcast.config.CardinalityEstimatorConfig)16 CacheSimpleConfig (com.hazelcast.config.CacheSimpleConfig)5 DurableExecutorConfig (com.hazelcast.config.DurableExecutorConfig)5 ExecutorConfig (com.hazelcast.config.ExecutorConfig)5 FlakeIdGeneratorConfig (com.hazelcast.config.FlakeIdGeneratorConfig)5 ListConfig (com.hazelcast.config.ListConfig)5 MapConfig (com.hazelcast.config.MapConfig)5 MergePolicyConfig (com.hazelcast.config.MergePolicyConfig)5 MultiMapConfig (com.hazelcast.config.MultiMapConfig)5 PNCounterConfig (com.hazelcast.config.PNCounterConfig)5 QueueConfig (com.hazelcast.config.QueueConfig)5 ReliableTopicConfig (com.hazelcast.config.ReliableTopicConfig)5 ReplicatedMapConfig (com.hazelcast.config.ReplicatedMapConfig)5 RingbufferConfig (com.hazelcast.config.RingbufferConfig)5 ScheduledExecutorConfig (com.hazelcast.config.ScheduledExecutorConfig)5 SetConfig (com.hazelcast.config.SetConfig)5 TopicConfig (com.hazelcast.config.TopicConfig)5 Test (org.junit.Test)5 QuickTest (com.hazelcast.test.annotation.QuickTest)4 Config (com.hazelcast.config.Config)3