Examples of TopicConfig


Examples of com.alibaba.rocketmq.common.TopicConfig

            response.setCode(ResponseCode.SYSTEM_ERROR);
            response.setRemark(errorMsg);
            return response;
        }

        TopicConfig topicConfig = new TopicConfig(requestHeader.getTopic());
        topicConfig.setReadQueueNums(requestHeader.getReadQueueNums());
        topicConfig.setWriteQueueNums(requestHeader.getWriteQueueNums());
        topicConfig.setTopicFilterType(requestHeader.getTopicFilterTypeEnum());
        topicConfig.setPerm(requestHeader.getPerm());

        this.brokerController.getTopicConfigManager().updateTopicConfig(topicConfig);

        response.setCode(ResponseCode.SUCCESS);
        response.setRemark(null);
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

    }

    @ManagedAnnotation("config")
    public String getConfig() {
        Config config = service.instance.getConfig();
        TopicConfig topicConfig = config.findTopicConfig(managedObject.getName());
        return topicConfig.toString();
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

    }

    @Override
    public void initialize() {
        NodeEngine nodeEngine = getNodeEngine();
        TopicConfig config = nodeEngine.getConfig().findTopicConfig(name);
        for (ListenerConfig listenerConfig : config.getMessageListenerConfigs()) {
            initialize(listenerConfig);
        }
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

            return new TopicProxy(name, nodeEngine, this);
        }
    }

    private boolean isGlobalOrderingEnabled(String name) {
        TopicConfig topicConfig = nodeEngine.getConfig().findTopicConfig(name);
        return topicConfig.isGlobalOrderingEnabled();
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

    }

    @Override
    public void initialize() {
        NodeEngine nodeEngine = getNodeEngine();
        TopicConfig config = nodeEngine.getConfig().findTopicConfig(name);
        for (ListenerConfig listenerConfig : config.getMessageListenerConfigs()) {
            initialize(listenerConfig);
        }
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

            return new TopicProxy(name, nodeEngine, this);
        }
    }

    private boolean isGlobalOrderingEnabled(String name) {
        TopicConfig topicConfig = nodeEngine.getConfig().findTopicConfig(name);
        return topicConfig.isGlobalOrderingEnabled();
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

        }
    }

    @Test
    public void testTopicConfig() {
        TopicConfig testTopicConfig = config.getTopicConfig("testTopic");
        assertNotNull(testTopicConfig);
        assertEquals("testTopic", testTopicConfig.getName());
        assertEquals(1, testTopicConfig.getMessageListenerConfigs().size());
        assertEquals(true, testTopicConfig.isGlobalOrderingEnabled());
        assertEquals(false, testTopicConfig.isStatisticsEnabled());
        ListenerConfig listenerConfig = testTopicConfig.getMessageListenerConfigs().get(0);
        assertEquals("com.hazelcast.spring.DummyMessageListener", listenerConfig.getClassName());
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

    }

    @ManagedAnnotation("config")
    public String getConfig() {
        Config config = service.instance.getConfig();
        TopicConfig topicConfig = config.findTopicConfig(managedObject.getName());
        return topicConfig.toString();
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

    }

    @Override
    public void initialize() {
        NodeEngine nodeEngine = getNodeEngine();
        TopicConfig config = nodeEngine.getConfig().findTopicConfig(name);
        for (ListenerConfig listenerConfig : config.getMessageListenerConfigs()) {
            initialize(listenerConfig);
        }
    }
View Full Code Here

Examples of com.hazelcast.config.TopicConfig

            return new TopicProxy(name, nodeEngine, this);
        }
    }

    private boolean isGlobalOrderingEnabled(String name) {
        TopicConfig topicConfig = nodeEngine.getConfig().findTopicConfig(name);
        return topicConfig.isGlobalOrderingEnabled();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.