use of com.hazelcast.config.TopicConfig in project hazelcast by hazelcast.
the class DynamicConfigTest method assertConfigurationsEqualOnAllMembers.
private void assertConfigurationsEqualOnAllMembers(TopicConfig topicConfig) {
String name = topicConfig.getName();
for (HazelcastInstance instance : members) {
TopicConfig registeredConfig = instance.getConfig().getTopicConfig(name);
assertEquals(topicConfig, registeredConfig);
}
}
use of com.hazelcast.config.TopicConfig in project hazelcast by hazelcast.
the class DynamicConfigTest method testTopicConfig.
@Test
public void testTopicConfig() {
TopicConfig topicConfig = new TopicConfig(name).setGlobalOrderingEnabled(true).setMultiThreadingEnabled(false).setStatisticsEnabled(true);
driver.getConfig().addTopicConfig(topicConfig);
assertConfigurationsEqualOnAllMembers(topicConfig);
}
use of com.hazelcast.config.TopicConfig in project hazelcast by hazelcast.
the class ReliableTopicStressTest method setup.
@Before
public void setup() {
Config config = new Config();
RingbufferConfig ringbufferConfig = new RingbufferConfig("foobar");
ringbufferConfig.setCapacity(1000 * 1000);
ringbufferConfig.setTimeToLiveSeconds(5);
config.addRingBufferConfig(ringbufferConfig);
TopicConfig topicConfig = new TopicConfig("foobar");
config.addTopicConfig(topicConfig);
HazelcastInstance hz = createHazelcastInstance(config);
topic = hz.getReliableTopic(topicConfig.getName());
}
Aggregations