Search in sources :

Example 16 with DynamicConfigurationAwareConfig

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

the class AddTopicConfigMessageTask method checkStaticConfigDoesNotExist.

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

Example 17 with DynamicConfigurationAwareConfig

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

the class AddMapConfigMessageTask method checkStaticConfigDoesNotExist.

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

Example 18 with DynamicConfigurationAwareConfig

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

the class AddRingbufferConfigMessageTask method checkStaticConfigDoesNotExist.

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

Example 19 with DynamicConfigurationAwareConfig

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

the class AddDurableExecutorConfigMessageTask method checkStaticConfigDoesNotExist.

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

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