public interface AsyncReconfigBuilder
Modifier and Type | Method and Description |
---|---|
AsyncEnsemblable<AsyncStage<Void>> |
withJoiningAndLeaving(List<String> joining,
List<String> leaving)
Adds servers to join the ensemble and/or servers to leave the ensemble.
|
AsyncEnsemblable<AsyncStage<Void>> |
withJoiningAndLeaving(List<String> joining,
List<String> leaving,
long fromConfig)
Specify joiners, leaves and config version.
|
AsyncEnsemblable<AsyncStage<Void>> |
withJoiningAndLeaving(List<String> joining,
List<String> leaving,
org.apache.zookeeper.data.Stat stat)
Same as
withJoiningAndLeaving(java.util.List, java.util.List)
but allows a stat to hold the stat info from "/zookeeper/config" |
AsyncEnsemblable<AsyncStage<Void>> |
withJoiningAndLeaving(List<String> joining,
List<String> leaving,
org.apache.zookeeper.data.Stat stat,
long fromConfig)
Same as
withJoiningAndLeaving(java.util.List, java.util.List) with stat and config version |
AsyncEnsemblable<AsyncStage<Void>> |
withNewMembers(List<String> servers)
Sets one or more members that are meant to be the ensemble.
|
AsyncEnsemblable<AsyncStage<Void>> |
withNewMembers(List<String> servers,
long fromConfig)
Same as
withNewMembers(java.util.List) but allows specified the configuration version to use. |
AsyncEnsemblable<AsyncStage<Void>> |
withNewMembers(List<String> servers,
org.apache.zookeeper.data.Stat stat)
Same as
withNewMembers(java.util.List) but allows a stat to hold the stat info from "/zookeeper/config" |
AsyncEnsemblable<AsyncStage<Void>> |
withNewMembers(List<String> servers,
org.apache.zookeeper.data.Stat stat,
long fromConfig)
Same as
withNewMembers(java.util.List) with stat and config version |
AsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers)
server.[id]=[hostname]:[peer port]:[election port]:[type];[client port]
servers
- The new server listAsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving)
server.[id]=[hostname]:[peer port]:[election port]:[type];[client port]
. The format
for leaving is a list of server IDs.joining
- The servers joiningleaving
- The servers leavingAsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers, long fromConfig)
withNewMembers(java.util.List)
but allows specified the configuration version to use.
By default the configuration version is -1.servers
- The new server listfromConfig
- the config version to usewithNewMembers(java.util.List)
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, long fromConfig)
joining
- The servers joiningleaving
- The servers leavingfromConfig
- the config version to usewithJoiningAndLeaving(java.util.List, java.util.List)
AsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat)
withNewMembers(java.util.List)
but allows a stat to hold the stat info from "/zookeeper/config"servers
- The servers joining.stat
- stat to hold the stat valuewithNewMembers(java.util.List)
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat)
withJoiningAndLeaving(java.util.List, java.util.List)
but allows a stat to hold the stat info from "/zookeeper/config"joining
- The servers joiningleaving
- The servers leavingstat
- stat to hold the stat valuewithJoiningAndLeaving(java.util.List, java.util.List)
AsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat, long fromConfig)
withNewMembers(java.util.List)
with stat and config versionservers
- The servers joining.stat
- stat to hold the stat valuefromConfig
- the config version to usewithNewMembers(java.util.List, long)
,
withNewMembers(java.util.List, org.apache.zookeeper.data.Stat)
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat, long fromConfig)
withJoiningAndLeaving(java.util.List, java.util.List)
with stat and config versionjoining
- The servers joiningleaving
- The servers leavingstat
- stat to hold the stat valuefromConfig
- the config version to usewithJoiningAndLeaving(java.util.List, java.util.List, long)
,
withJoiningAndLeaving(java.util.List, java.util.List, org.apache.zookeeper.data.Stat)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.