Examples of MetaClientConfig


Examples of com.taobao.metamorphosis.client.MetaClientConfig

    IMocksControl mocksControl;


    @Before
    public void setUp() throws Exception {
        processor = new AsyncIgnoreMessageProcessor(new MetaClientConfig(), new MessageRecoverer() {

            @Override
            public void handle(Message msg) throws Exception {

            }
View Full Code Here

Examples of com.taobao.metamorphosis.client.MetaClientConfig

    }


    @Test
    public void testAsyncIgnoreMessageProcessor() {
        new AsyncIgnoreMessageProcessor(new MetaClientConfig(), new MessageRecoverer() {

            @Override
            public void handle(Message msg) throws Exception {

            }
View Full Code Here

Examples of com.taobao.metamorphosis.client.MetaClientConfig

    private void initMeta() {
        if (this.producer == null) {
            synchronized (this) {
                if (this.producer == null) {
                    final MetaClientConfig metaClientConfig = new MetaClientConfig();
                    // metaClientConfig.setDiamondZKDataId(this.diamondZKDataId);
                    // metaClientConfig.setDiamondZKGroup(this.diamondZKGroup);
                    metaClientConfig.setZkConfig(this.zkConfig);
                    try {
                        if (this.messageSessionFactory == null) {
                            this.messageSessionFactory = new AsyncMetaMessageSessionFactory(metaClientConfig);
                        }
                        this.producer = this.messageSessionFactory.createAsyncProducer();
View Full Code Here

Examples of com.taobao.metamorphosis.client.MetaClientConfig

    }


    static private MetaClientConfig metaClientConfigOf(String serverUrl, MonitorConfig monitorConfig) {
        MetaClientConfig metaClientConfig = new MetaClientConfig();
        metaClientConfig.setServerUrl(serverUrl);
        return metaClientConfig;
    }
View Full Code Here

Examples of com.taobao.metamorphosis.client.MetaClientConfig

    private final MessageSessionFactory sessionFactory;


    public MsgReceiver(String serverUrl, MonitorConfig monitorConfig) throws MetaClientException {
        this.serverUrl = serverUrl;
        MetaClientConfig metaClientConfig = monitorConfig.metaClientConfigOf(serverUrl);
        this.sessionFactory = new MetaMessageSessionFactory(metaClientConfig);
        this.consumer = this.sessionFactory.createConsumer(new ConsumerConfig(group));
    }
View Full Code Here

Examples of com.taobao.metamorphosis.client.MetaClientConfig

    // ArrayList<EnhancedBroker>();

    @Before
    @Override
    public void setUp() throws Exception {
        MetaClientConfig metaClientConfig = new MetaClientConfig();
        super.sessionFactory = new MetaMessageSessionFactory(metaClientConfig);
        this.log.info("before run");
    }
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.