Search in sources :

Example 6 with DynamicConfigurationAwareConfig

use of com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig in project hazelcast by hazelcast.

the class AddListConfigMessageTask method checkStaticConfigDoesNotExist.

@Override
protected boolean checkStaticConfigDoesNotExist(IdentifiedDataSerializable config) {
    DynamicConfigurationAwareConfig nodeConfig = (DynamicConfigurationAwareConfig) nodeEngine.getConfig();
    ListConfig listConfig = (ListConfig) config;
    return nodeConfig.checkStaticConfigDoesNotExist(nodeConfig.getStaticConfig().getListConfigs(), listConfig.getName(), listConfig);
}
Also used : DynamicConfigurationAwareConfig(com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig) ListConfig(com.hazelcast.config.ListConfig)

Example 7 with DynamicConfigurationAwareConfig

use of com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig in project hazelcast by hazelcast.

the class AddQueueConfigMessageTask method checkStaticConfigDoesNotExist.

@Override
protected boolean checkStaticConfigDoesNotExist(IdentifiedDataSerializable config) {
    DynamicConfigurationAwareConfig nodeConfig = (DynamicConfigurationAwareConfig) nodeEngine.getConfig();
    QueueConfig queueConfig = (QueueConfig) config;
    return nodeConfig.checkStaticConfigDoesNotExist(nodeConfig.getStaticConfig().getQueueConfigs(), queueConfig.getName(), queueConfig);
}
Also used : QueueConfig(com.hazelcast.config.QueueConfig) DynamicConfigurationAwareConfig(com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig)

Example 8 with DynamicConfigurationAwareConfig

use of com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig in project hazelcast by hazelcast.

the class AddScheduledExecutorConfigMessageTask method checkStaticConfigDoesNotExist.

@Override
protected boolean checkStaticConfigDoesNotExist(IdentifiedDataSerializable config) {
    DynamicConfigurationAwareConfig nodeConfig = (DynamicConfigurationAwareConfig) nodeEngine.getConfig();
    ScheduledExecutorConfig scheduledExecutorConfig = (ScheduledExecutorConfig) config;
    return nodeConfig.checkStaticConfigDoesNotExist(nodeConfig.getStaticConfig().getScheduledExecutorConfigs(), scheduledExecutorConfig.getName(), scheduledExecutorConfig);
}
Also used : DynamicConfigurationAwareConfig(com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig) ScheduledExecutorConfig(com.hazelcast.config.ScheduledExecutorConfig)

Example 9 with DynamicConfigurationAwareConfig

use of com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig in project hazelcast by hazelcast.

the class AddCacheConfigMessageTask method checkStaticConfigDoesNotExist.

@Override
protected boolean checkStaticConfigDoesNotExist(IdentifiedDataSerializable config) {
    DynamicConfigurationAwareConfig nodeConfig = (DynamicConfigurationAwareConfig) nodeEngine.getConfig();
    CacheSimpleConfig cacheConfig = (CacheSimpleConfig) config;
    return nodeConfig.checkStaticConfigDoesNotExist(nodeConfig.getStaticConfig().getCacheConfigs(), cacheConfig.getName(), cacheConfig);
}
Also used : CacheSimpleConfig(com.hazelcast.config.CacheSimpleConfig) DynamicConfigurationAwareConfig(com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig)

Example 10 with DynamicConfigurationAwareConfig

use of com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig in project hazelcast by hazelcast.

the class AddFlakeIdGeneratorConfigMessageTask method checkStaticConfigDoesNotExist.

@Override
protected boolean checkStaticConfigDoesNotExist(IdentifiedDataSerializable config) {
    DynamicConfigurationAwareConfig nodeConfig = (DynamicConfigurationAwareConfig) nodeEngine.getConfig();
    FlakeIdGeneratorConfig flakeIdGeneratorConfig = (FlakeIdGeneratorConfig) config;
    return nodeConfig.checkStaticConfigDoesNotExist(nodeConfig.getStaticConfig().getFlakeIdGeneratorConfigs(), flakeIdGeneratorConfig.getName(), flakeIdGeneratorConfig);
}
Also used : FlakeIdGeneratorConfig(com.hazelcast.config.FlakeIdGeneratorConfig) DynamicConfigurationAwareConfig(com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig)

Aggregations

DynamicConfigurationAwareConfig (com.hazelcast.internal.dynamicconfig.DynamicConfigurationAwareConfig)19 MapConfig (com.hazelcast.config.MapConfig)4 Config (com.hazelcast.config.Config)3 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)3 Test (org.junit.Test)3 ListConfig (com.hazelcast.config.ListConfig)2 HazelcastInstance (com.hazelcast.core.HazelcastInstance)2 Job (com.hazelcast.jet.Job)2 JobConfig (com.hazelcast.jet.config.JobConfig)2 EXACTLY_ONCE (com.hazelcast.jet.config.ProcessingGuarantee.EXACTLY_ONCE)2 Edge.between (com.hazelcast.jet.core.Edge.between)2 RUNNING (com.hazelcast.jet.core.JobStatus.RUNNING)2 NoOutputSourceP (com.hazelcast.jet.core.TestProcessors.NoOutputSourceP)2 TestUtil.throttle (com.hazelcast.jet.core.TestUtil.throttle)2 JetServiceBackend (com.hazelcast.jet.impl.JetServiceBackend)2 JobRepository (com.hazelcast.jet.impl.JobRepository)2 HazelcastSerialClassRunner (com.hazelcast.test.HazelcastSerialClassRunner)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2