Package com.taobao.metamorphosis.client.consumer

Examples of com.taobao.metamorphosis.client.consumer.SubscriberInfo


    public void testReigsterSlaveConsumer() throws Exception {
        final ConsumerConfig consumerConfig = new ConsumerConfig();
        consumerConfig.setGroup(GROUP);
        final ConcurrentHashMap<String/* topic */, SubscriberInfo> topicSubcriberRegistry =
                new ConcurrentHashMap<String, SubscriberInfo>();
        topicSubcriberRegistry.put("topic1", new SubscriberInfo(null, null, 1024 * 1024));
        topicSubcriberRegistry.put("topic2", new SubscriberInfo(null, null, 1024 * 1024));

        // ���輯Ⱥ������̨master,topic1��master����3������;
        // topic2��master����1������,����һ������ص�master����1������
        ZkUtils.createEphemeralPath(this.client, this.metaZookeeper.brokerIdsPath + "/0/master", "meta://localhost:0");
        ZkUtils.createEphemeralPath(this.client, this.metaZookeeper.brokerIdsPath + "/1/master", "meta://localhost:1");
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.client.consumer.SubscriberInfo

Copyright © 2018 www.massapicom. 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.