public static void stopServer() throws Exception {
simpleServer.stop();
}
private static QuorumPeerConfig getPeerConfig(Properties props) throws IOException, QuorumPeerConfig.ConfigException {
QuorumPeerConfig peerConfig = new QuorumPeerConfig();
peerConfig.parseProperties(props);
LOGGER.info("Created zookeeper peer configuration: {}", peerConfig);
return peerConfig;
}