Backgroundable<LeaveStatConfigEnsembleable>, ErrorListenerReconfigBuilderMain, Joinable<LeaveStatConfigEnsembleable>, Leaveable<LeaveStatConfigEnsembleable>, Membersable<LeaveStatConfigEnsembleable>, ReconfigBuilder, ReconfigBuilderMainpublic class ReconfigBuilderImpl extends java.lang.Object implements ReconfigBuilder, ErrorListenerReconfigBuilderMain
| Constructor | Description |
|---|---|
ReconfigBuilderImpl(CuratorFrameworkImpl client) |
|
ReconfigBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
org.apache.zookeeper.data.Stat responseStat,
long fromConfig,
java.util.List<java.lang.String> newMembers,
java.util.List<java.lang.String> joining,
java.util.List<java.lang.String> leaving) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
forEnsemble() |
|
ErrorListenerReconfigBuilderMain |
inBackground() |
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
LeaveStatConfigEnsembleable |
joining(java.lang.String... server) |
Adds one or more servers to joining the ensemble.
|
LeaveStatConfigEnsembleable |
joining(java.util.List<java.lang.String> servers) |
Adds one or more servers to joining the ensemble.
|
JoinStatConfigEnsembleable |
leaving(java.lang.String... server) |
Sets one or more servers to leaving the ensemble.
|
JoinStatConfigEnsembleable |
leaving(java.util.List<java.lang.String> servers) |
Sets one or more servers to leaving the ensemble.
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.Void> data) |
|
StatConfigureEnsembleable |
withNewMembers(java.lang.String... server) |
Sets one or more members that are meant to be the ensemble.
|
StatConfigureEnsembleable |
withNewMembers(java.util.List<java.lang.String> servers) |
Sets one or more members that are meant to be the ensemble.
|
ReconfigBuilderMain |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public ReconfigBuilderImpl(CuratorFrameworkImpl client)
public ReconfigBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat, long fromConfig, java.util.List<java.lang.String> newMembers, java.util.List<java.lang.String> joining, java.util.List<java.lang.String> leaving)
public byte[] forEnsemble()
throws java.lang.Exception
java.lang.Exceptionpublic ErrorListenerReconfigBuilderMain inBackground()
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>public ErrorListenerReconfigBuilderMain inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>context - context object - will be available from the event sent to the listenerpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>callback - a functor that will get called when the operation has completedpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>callback - a functor that will get called when the operation has completedcontext - context object - will be available from the event sent to the listenerpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<LeaveStatConfigEnsembleable>callback - a functor that will get called when the operation has completedcontext - context object - will be available from the event sent to the listenerexecutor - executor to use for the background callpublic ReconfigBuilderMain withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerReconfigBuilderMainwithUnhandledErrorListener in interface ErrorListenerReconfigBuilderMainlistener - the listenerpublic StatConfigureEnsembleable withNewMembers(java.lang.String... server)
MembersablewithNewMembers in interface Membersable<LeaveStatConfigEnsembleable>server - The server joining.public StatConfigureEnsembleable withNewMembers(java.util.List<java.lang.String> servers)
MembersablewithNewMembers in interface Membersable<LeaveStatConfigEnsembleable>servers - The servers joining.public LeaveStatConfigEnsembleable joining(java.lang.String... server)
Joinablejoining in interface Joinable<LeaveStatConfigEnsembleable>server - The server joining.public LeaveStatConfigEnsembleable joining(java.util.List<java.lang.String> servers)
Joinablejoining in interface Joinable<LeaveStatConfigEnsembleable>servers - The servers joining.public JoinStatConfigEnsembleable leaving(java.lang.String... server)
Leaveableleaving in interface Leaveable<LeaveStatConfigEnsembleable>server - The server idspublic JoinStatConfigEnsembleable leaving(java.util.List<java.lang.String> servers)
Leaveableleaving in interface Leaveable<LeaveStatConfigEnsembleable>servers - The server idspublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.Void> data)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.