本文整理了Java中com.yahoo.cloud.config.ZookeeperServerConfig.zooKeeperConfigFile()
方法的一些代码示例,展示了ZookeeperServerConfig.zooKeeperConfigFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZookeeperServerConfig.zooKeeperConfigFile()
方法的具体详情如下:
包路径:com.yahoo.cloud.config.ZookeeperServerConfig
类名称:ZookeeperServerConfig
方法名:zooKeeperConfigFile
暂无
代码示例来源:origin: com.yahoo.vespa/zkfacade
private void writeConfigToDisk(ZookeeperServerConfig config) {
String configFilePath = getDefaults().underVespaHome(config.zooKeeperConfigFile());
new File(configFilePath).getParentFile().mkdirs();
try (FileWriter writer = new FileWriter(configFilePath)) {
writer.write(transformConfigToString(config));
writeMyIdFile(config);
} catch (IOException e) {
throw new RuntimeException("Error writing zookeeper config", e);
}
}
代码示例来源:origin: com.yahoo.vespa/zkfacade
@Override
public void run() {
System.setProperty(ZOOKEEPER_JMX_LOG4J_DISABLE, "true");
String[] args = new String[]{getDefaults().underVespaHome(zookeeperServerConfig.zooKeeperConfigFile())};
log.log(LogLevel.DEBUG, "Starting ZooKeeper server with config: " + args[0]);
log.log(LogLevel.INFO, "Trying to establish ZooKeeper quorum (from " + zookeeperServerHostnames(zookeeperServerConfig) + ")");
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(args);
}
代码示例来源:origin: com.yahoo.vespa/configdefinitions
public Builder(ZookeeperServerConfig config) {
zooKeeperConfigFile(config.zooKeeperConfigFile());
tickTime(config.tickTime());
initLimit(config.initLimit());
syncLimit(config.syncLimit());
maxClientConnections(config.maxClientConnections());
dataDir(config.dataDir());
clientPort(config.clientPort());
snapshotCount(config.snapshotCount());
autopurge(new Autopurge.Builder(config.autopurge()));
myidFile(config.myidFile());
juteMaxBuffer(config.juteMaxBuffer());
myid(config.myid());
for (Server s : config.server()) {
server(new Server.Builder(s));
}
}
内容来源于网络,如有侵权,请联系作者删除!