Package com.linkedin.norbert.javacompat.cluster

Examples of com.linkedin.norbert.javacompat.cluster.ClusterClient


    public ClusterClient buildClusterClient() {
        String clusterName = _senseiConf.getString(SENSEI_CLUSTER_NAME);
        String clusterClientName = _senseiConf.getString(SENSEI_CLUSTER_CLIENT_NAME, clusterName);
        String zkUrl = _senseiConf.getString(SENSEI_CLUSTER_URL);
        int zkTimeout = _senseiConf.getInt(SENSEI_CLUSTER_TIMEOUT, 300000);
        ClusterClient clusterClient = new ZooKeeperClusterClient(clusterClientName, clusterName, zkUrl, zkTimeout);

        logger.info("Connecting to cluster: " + clusterName + " ...");
        clusterClient.awaitConnectionUninterruptibly();

        logger.info("Cluster: " + clusterName + " successfully connected ");

        return clusterClient;
    }
View Full Code Here


        long shutdownPauseMillis = _senseiConf.getLong(SENSEI_SHUTDOWN_WAIT_FOR_CLIENT_MILLIS, 0L);

        JmxSenseiMBeanServer.registerCustomMBeanServer();

        ClusterClient clusterClient = buildClusterClient();

        NetworkServer networkServer = buildNetworkServer(_senseiConf, clusterClient);

        SenseiCore core = buildCore();
View Full Code Here

TOP

Related Classes of com.linkedin.norbert.javacompat.cluster.ClusterClient

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.