Package com.alibaba.otter.canal.client.impl

Examples of com.alibaba.otter.canal.client.impl.ClusterCanalConnector


     * @param password
     * @return
     */
    public static CanalConnector newClusterConnector(List<? extends SocketAddress> addresses, String destination,
                                                     String username, String password) {
        ClusterCanalConnector canalConnector = new ClusterCanalConnector(username, password, destination,
                                                                         new SimpleNodeAccessStrategy(addresses));
        canalConnector.setSoTimeout(30 * 1000);
        return canalConnector;
    }
View Full Code Here


     * @param password
     * @return
     */
    public static CanalConnector newClusterConnector(String zkServers, String destination, String username,
                                                     String password) {
        ClusterCanalConnector canalConnector = new ClusterCanalConnector(
                                                                         username,
                                                                         password,
                                                                         destination,
                                                                         new ClusterNodeAccessStrategy(
                                                                                                       destination,
                                                                                                       ZkClientx.getZkClient(zkServers)));
        canalConnector.setSoTimeout(30 * 1000);
        return canalConnector;
    }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.canal.client.impl.ClusterCanalConnector

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.