Package com.alibaba.otter.common.push.supplier

Examples of com.alibaba.otter.common.push.supplier.DatasourceInfo


                }
            });
        }

        DatasourceInfo datasourceInfo = dataSourceSupplier.fetchMaster();
        String url = buildMysqlUrl(datasourceInfo.getAddress().getAddress().getHostAddress(),
                                   datasourceInfo.getAddress().getPort());

        delegate = doCreateDataSource(url);
    }
View Full Code Here


        HaDatasourceInfo haInfo = new HaDatasourceInfo();

        Map jsonMap = JsonUtils.unmarshalFromString(matrixStr, HashMap.class);
        String masterAddress = (String) jsonMap.get("master");
        if (masterAddress != null) {
            DatasourceInfo master = new DatasourceInfo();
            master.setAddress(parseAddress(masterAddress));
            haInfo.setMaster(master);
        }

        String slaveAddress = (String) jsonMap.get("master");
        if (slaveAddress != null) {
            DatasourceInfo slave = new DatasourceInfo();
            slave.setAddress(parseAddress(slaveAddress));
            haInfo.getSlavers().add(slave);
        }

        return haInfo;
    }
View Full Code Here

                }
            });
        }

        DatasourceInfo datasourceInfo = dataSourceSupplier.fetchMaster();
        String url = buildMysqlUrl(datasourceInfo.getAddress().getAddress().getHostAddress(),
                                   datasourceInfo.getAddress().getPort());

        delegate = doCreateDataSource(url);
    }
View Full Code Here

        }
        if (!this.supplier.isStart()) {
            this.supplier.start();
        }

        DatasourceInfo fetched = this.supplier.fetchMaster();
        AuthenticationInfo masterFetched = AuthenticationInfoUtils.createFrom(fetched);

        log.info(String.format("medialHAController started for  goup:[%s], and first auth info is : [%s]", this.group,
                               masterFetched));
View Full Code Here

TOP

Related Classes of com.alibaba.otter.common.push.supplier.DatasourceInfo

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.