Package at.salzburgresearch.nodekeeper

Examples of at.salzburgresearch.nodekeeper.NodeKeeper


            log.info(" - initialize nodekeeper connection for instance {} (cluster {})",configurationService.getStringConfiguration(ZK_INSTANCE), configurationService.getStringConfiguration(ZK_CLUSTER));



            try {
                nodeKeeper = new NodeKeeper(connectionString,configurationService.getIntConfiguration(ZK_TIMEOUT, 60000),properties, null);

                initZooKeeper();

                String uuid = configurationService.getStringConfiguration(ZK_INSTANCE, UUID.randomUUID().toString());
                String cluster = configurationService.getStringConfiguration(ZK_CLUSTER, "default");
View Full Code Here


            }
        }
    }

    public void exec() throws InterruptedException, IOException, NodeKeeperException {
        NodeKeeper nodeKeeper = new NodeKeeper(connection, 10, new Properties());
        ZKBootstrap zkBootstrap = new ZKBootstrap(nodeKeeper);
        zkBootstrap.load(file, true);
        System.out.println("Successfully bootstrapped zookeeper at " + connection + " with data from " + file.getAbsolutePath() + " !");
    }
View Full Code Here

            }
        }
    }

    public void exec() throws InterruptedException, IOException, NodeKeeperException {
        NodeKeeper nodeKeeper = new NodeKeeper(connection, 10000, new Properties());
        ZKBootstrap zkBootstrap = new ZKBootstrap(nodeKeeper);
        if(type_is_import) {
            zkBootstrap.load(file, clean);
            System.out.println("Successfully bootstrapped zookeeper at " + connection + " with data from " + file.getAbsolutePath() + " !");
        } else {
View Full Code Here

TOP

Related Classes of at.salzburgresearch.nodekeeper.NodeKeeper

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.