Package io.fathom.auto.config

Examples of io.fathom.auto.config.ConfigPath


    ConfigPath lockPath;

    private final ZookeeperCluster cluster;

    public ZookeeperInstance(ConfigPath configPath) {
        ConfigPath clusterPath = configPath.child("cluster");
        ConfigPath lockPath = configPath.child("lock");

        this.cluster = new ZookeeperCluster(clusterPath, lockPath.buildLock());
    }
View Full Code Here


    public ZookeeperCluster(ConfigPath base, Lock lock) {
        super(base, lock);
    }

    public void writeClusterState(ClusterState state) throws IOException {
        ConfigPath node = getStatePath();

        String json = JsonCodec.gson.toJson(state);
        node.write(json);
    }
View Full Code Here

TOP

Related Classes of io.fathom.auto.config.ConfigPath

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.