Package com.yahoo.cloud.config
Class ZookeeperServerConfig.Builder
java.lang.Object
com.yahoo.cloud.config.ZookeeperServerConfig.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder,com.yahoo.config.ConfigInstance.Builder
- Enclosing class:
- ZookeeperServerConfig
public static final class ZookeeperServerConfig.Builder
extends Object
implements com.yahoo.config.ConfigInstance.Builder
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautopurge(ZookeeperServerConfig.Autopurge.Builder __builder) Make a new builder and run the supplied function on it before adding it to the listbuild()clientPort(int __value) final booleandispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) dynamicReconfiguration(boolean __value) final booleanfinal Stringfinal Stringfinal StringinitLimit(int __value) juteMaxBuffer(int __value) leaderCloseSocketAsync(boolean __value) learnerAsyncSending(boolean __value) maxClientConnections(int __value) myid(int __value) preAllocSizeKb(long __value) reconfigureEnsemble(boolean __value) server(ZookeeperServerConfig.Server.Builder __builder) Add the given builder to this builder's list of Server buildersMake a new builder and run the supplied function on it before adding it to the listserver(List<ZookeeperServerConfig.Server.Builder> __builders) Set the given list as this builder's list of Server buildersfinal voidsetApplyOnRestart(boolean applyOnRestart) snapshotCount(int __value) snapshotMethod(String __value) syncLimit(int __value) tickTime(int __value) trustEmptySnapshot(boolean __value) vespaTlsConfigFile(String __value) zooKeeperConfigFile(String __value)
-
Field Details
-
autopurge
-
server
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
zooKeeperConfigFile
-
tickTime
-
initLimit
-
syncLimit
-
maxClientConnections
-
dataDir
-
clientPort
-
snapshotCount
-
autopurge
-
autopurge
public ZookeeperServerConfig.Builder autopurge(Consumer<ZookeeperServerConfig.Autopurge.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
myidFile
-
juteMaxBuffer
-
myid
-
server
Add the given builder to this builder's list of Server builders- Parameters:
__builder- a builder- Returns:
- this builder
-
server
Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
server
Set the given list as this builder's list of Server builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
trustEmptySnapshot
-
dynamicReconfiguration
-
snapshotMethod
-
vespaTlsConfigFile
-
leaderCloseSocketAsync
-
learnerAsyncSending
-
reconfigureEnsemble
-
preAllocSizeKb
-
dispatchGetConfig
public final boolean dispatchGetConfig(com.yahoo.config.ConfigInstance.Producer producer) - Specified by:
dispatchGetConfigin interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefMd5
- Specified by:
getDefMd5in interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefName
- Specified by:
getDefNamein interfacecom.yahoo.config.ConfigInstance.Builder
-
getDefNamespace
- Specified by:
getDefNamespacein interfacecom.yahoo.config.ConfigInstance.Builder
-
getApplyOnRestart
public final boolean getApplyOnRestart()- Specified by:
getApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
setApplyOnRestart
public final void setApplyOnRestart(boolean applyOnRestart) - Specified by:
setApplyOnRestartin interfacecom.yahoo.config.ConfigInstance.Builder
-
build
-