Package io.fathom.auto.zookeeper

Source Code of io.fathom.auto.zookeeper.AutonomousZookeeperMain

package io.fathom.auto.zookeeper;

import io.fathom.auto.config.ConfigStore;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AutonomousZookeeperMain {
    private static final Logger log = LoggerFactory.getLogger(AutonomousZookeeperMain.class);

    public static void main(String[] args) throws InterruptedException {
        ConfigStore configStore = ConfigStore.get("zookeeper");

        ZookeeperInstance zk = new ZookeeperInstance(configStore.getConfigRoot());
        try {
            zk.run();
        } catch (Exception e) {
            log.error("Error during ZK run; forcing exit", e);
            System.exit(1);
        }
    }

}
TOP

Related Classes of io.fathom.auto.zookeeper.AutonomousZookeeperMain

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.