Package org.apache.curator.x.async.api
Interface AsyncReconfigBuilder
public interface AsyncReconfigBuilder
Builder for reconfigs
-
Method Summary
Modifier and TypeMethodDescriptionwithJoiningAndLeaving(List<String> joining, List<String> leaving) Adds servers to join the ensemble and/or servers to leave the ensemble.withJoiningAndLeaving(List<String> joining, List<String> leaving, long fromConfig) Specify joiners, leaves and config version.withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat) Same aswithJoiningAndLeaving(java.util.List, java.util.List)but allows a stat to hold the stat info from "/zookeeper/config"withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat, long fromConfig) Same aswithJoiningAndLeaving(java.util.List, java.util.List)with stat and config versionwithNewMembers(List<String> servers) Sets one or more members that are meant to be the ensemble.withNewMembers(List<String> servers, long fromConfig) Same aswithNewMembers(java.util.List)but allows specified the configuration version to use.withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat) Same aswithNewMembers(java.util.List)but allows a stat to hold the stat info from "/zookeeper/config"withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat, long fromConfig) Same aswithNewMembers(java.util.List)with stat and config version
-
Method Details
-
withNewMembers
Sets one or more members that are meant to be the ensemble. The expected format is:server.[id]=[hostname]:[peer port]:[election port]:[type];[client port]- Parameters:
servers- The new server list- Returns:
- this
-
withJoiningAndLeaving
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving) Adds servers to join the ensemble and/or servers to leave the ensemble. The format for joining is:server.[id]=[hostname]:[peer port]:[election port]:[type];[client port]. The format for leaving is a list of server IDs.- Parameters:
joining- The servers joiningleaving- The servers leaving- Returns:
- this
-
withNewMembers
Same aswithNewMembers(java.util.List)but allows specified the configuration version to use. By default the configuration version is -1.- Parameters:
servers- The new server listfromConfig- the config version to use- Returns:
- this
- See Also:
-
withJoiningAndLeaving
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, long fromConfig) Specify joiners, leaves and config version. By default the configuration version is -1.- Parameters:
joining- The servers joiningleaving- The servers leavingfromConfig- the config version to use- Returns:
- this
- See Also:
-
withNewMembers
AsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat) Same aswithNewMembers(java.util.List)but allows a stat to hold the stat info from "/zookeeper/config"- Parameters:
servers- The servers joining.stat- stat to hold the stat value- Returns:
- this
- See Also:
-
withJoiningAndLeaving
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat) Same aswithJoiningAndLeaving(java.util.List, java.util.List)but allows a stat to hold the stat info from "/zookeeper/config"- Parameters:
joining- The servers joiningleaving- The servers leavingstat- stat to hold the stat value- Returns:
- this
- See Also:
-
withNewMembers
AsyncEnsemblable<AsyncStage<Void>> withNewMembers(List<String> servers, org.apache.zookeeper.data.Stat stat, long fromConfig) Same aswithNewMembers(java.util.List)with stat and config version- Parameters:
servers- The servers joining.stat- stat to hold the stat valuefromConfig- the config version to use- Returns:
- this
- See Also:
-
withJoiningAndLeaving
AsyncEnsemblable<AsyncStage<Void>> withJoiningAndLeaving(List<String> joining, List<String> leaving, org.apache.zookeeper.data.Stat stat, long fromConfig) Same aswithJoiningAndLeaving(java.util.List, java.util.List)with stat and config version- Parameters:
joining- The servers joiningleaving- The servers leavingstat- stat to hold the stat valuefromConfig- the config version to use- Returns:
- this
- See Also:
-