Package kafka.server

Examples of kafka.server.KafkaServer.startup()


        return servers.get(index);
    }

    public static KafkaServer createServer(KafkaConfig config) {
        KafkaServer server = new KafkaServer(config, kafka.utils.SystemTime$.MODULE$);
        server.startup();
        return server;
    }

    public static Properties createBrokerConfig(int nodeId, int port, int zkPort, String dir) {
        Properties props = new Properties();
View Full Code Here


        zookeeper.shutdown();
    }
   
    private static KafkaServer startBroker(Properties props) {
        KafkaServer server = new KafkaServer(new KafkaConfig(props), new SystemTime());
        server.startup();
        return server;
    }
   
    public static class SystemTime implements Time {
       
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.