本文整理了Java中com.yahoo.cloud.config.ZookeeperServerConfig.dataDir()
方法的一些代码示例,展示了ZookeeperServerConfig.dataDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZookeeperServerConfig.dataDir()
方法的具体详情如下:
包路径:com.yahoo.cloud.config.ZookeeperServerConfig
类名称:ZookeeperServerConfig
方法名:dataDir
暂无
代码示例来源:origin: com.yahoo.vespa/zkfacade
private String transformConfigToString(ZookeeperServerConfig config) {
StringBuilder sb = new StringBuilder();
sb.append("tickTime=").append(config.tickTime()).append("\n");
sb.append("initLimit=").append(config.initLimit()).append("\n");
sb.append("syncLimit=").append(config.syncLimit()).append("\n");
sb.append("maxClientCnxns=").append(config.maxClientConnections()).append("\n");
sb.append("snapCount=").append(config.snapshotCount()).append("\n");
sb.append("dataDir=").append(getDefaults().underVespaHome(config.dataDir())).append("\n");
sb.append("clientPort=").append(config.clientPort()).append("\n");
sb.append("autopurge.purgeInterval=").append(config.autopurge().purgeInterval()).append("\n");
sb.append("autopurge.snapRetainCount=").append(config.autopurge().snapRetainCount()).append("\n");
// See http://zookeeper.apache.org/doc/r3.4.13/zookeeperAdmin.html#sc_zkCommands
// Includes all available commands in 3.4, except 'wchc' and 'wchp'
// Mandatory when using ZooKeeper 3.5
sb.append("4lw.commands.whitelist=conf,cons,crst,dump,envi,mntr,ruok,srst,srvr,stat,wchs").append("\n");
if (config.server().size() > 1) {
ensureThisServerIsRepresented(config.myid(), config.server());
for (ZookeeperServerConfig.Server server : config.server()) {
addServerToCfg(sb, server);
}
}
return sb.toString();
}
代码示例来源: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!