本文整理了Java中com.yahoo.cloud.config.ZookeeperServerConfig.juteMaxBuffer()
方法的一些代码示例,展示了ZookeeperServerConfig.juteMaxBuffer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZookeeperServerConfig.juteMaxBuffer()
方法的具体详情如下:
包路径:com.yahoo.cloud.config.ZookeeperServerConfig
类名称:ZookeeperServerConfig
方法名:juteMaxBuffer
暂无
代码示例来源:origin: com.yahoo.vespa/zkfacade
ZooKeeperServer(ZookeeperServerConfig zookeeperServerConfig, boolean startServer) {
this.zookeeperServerConfig = zookeeperServerConfig;
System.setProperty("zookeeper.jmx.log4j.disable", "true");
System.setProperty(ZOOKEEPER_JUTE_MAX_BUFFER, "" + zookeeperServerConfig.juteMaxBuffer());
System.setProperty("zookeeper.serverCnxnFactory", "com.yahoo.vespa.zookeeper.RestrictedServerCnxnFactory");
writeConfigToDisk(zookeeperServerConfig);
zkServerThread = new Thread(this, "zookeeper server");
if (startServer) {
zkServerThread.start();
}
}
代码示例来源: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));
}
}
内容来源于网络,如有侵权,请联系作者删除!