Package org.apache.s4.comm.topology

Examples of org.apache.s4.comm.topology.ZkClient.waitUntilExists()


        CsvReporter.enable(logDirectory, 10, TimeUnit.SECONDS);
        ConsoleReporter.enable(10, TimeUnit.SECONDS);

        SimplePE1 simplePE1 = createPE(SimplePE1.class, "simplePE1");
        ZkClient zkClient = new ZkClient(zkString);
        zkClient.waitUntilExists("/benchmarkConfig/warmupIterations", TimeUnit.SECONDS, 60);

        // TODO fix hardcoded cluster name (pass injector config?)
        int nbInjectors = zkClient.countChildren("/s4/clusters/testCluster1/tasks");
        simplePE1.setNbInjectors(nbInjectors);
View Full Code Here


        CsvReporter.enable(logDirectory, 10, TimeUnit.SECONDS);
        ConsoleReporter.enable(10, TimeUnit.SECONDS);

        FirstPE inputPE = createPE(FirstPE.class, "firstPE");
        ZkClient zkClient = new ZkClient(zkString);
        zkClient.waitUntilExists("/benchmarkConfig/warmupIterations", TimeUnit.SECONDS, 60);

        // TODO fix hardcoded cluster name (pass injector config?)
        int nbInjectors = zkClient.countChildren("/s4/clusters/testCluster1/tasks");

        createInputStream("inputStream", new KeyFinder<Event>() {
View Full Code Here

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.