public interface AdminApi
| 限定符和类型 | 方法和说明 |
|---|---|
default RaftClientReply |
setConfiguration(List<RaftPeer> serversInNewConf)
The same as setConfiguration(serversInNewConf, Collections.emptyList()).
|
default RaftClientReply |
setConfiguration(List<RaftPeer> serversInNewConf,
List<RaftPeer> listenersInNewConf)
Set the configuration request to the raft service.
|
default RaftClientReply |
setConfiguration(RaftPeer[] serversInNewConf)
The same as setConfiguration(Arrays.asList(serversInNewConf)).
|
default RaftClientReply |
setConfiguration(RaftPeer[] serversInNewConf,
RaftPeer[] listenersInNewConf)
The same as setConfiguration(Arrays.asList(serversInNewConf), Arrays.asList(listenersInNewConf)).
|
RaftClientReply |
setConfiguration(SetConfigurationRequest.Arguments arguments) |
default RaftClientReply |
transferLeadership(RaftPeerId newLeader,
long timeoutMs)
Transfer leadership to the given server.
|
RaftClientReply |
transferLeadership(RaftPeerId newLeader,
RaftPeerId leaderId,
long timeoutMs) |
RaftClientReply setConfiguration(SetConfigurationRequest.Arguments arguments) throws IOException
IOExceptiondefault RaftClientReply setConfiguration(List<RaftPeer> serversInNewConf) throws IOException
IOExceptiondefault RaftClientReply setConfiguration(RaftPeer[] serversInNewConf) throws IOException
IOExceptiondefault RaftClientReply setConfiguration(List<RaftPeer> serversInNewConf, List<RaftPeer> listenersInNewConf) throws IOException
IOExceptiondefault RaftClientReply setConfiguration(RaftPeer[] serversInNewConf, RaftPeer[] listenersInNewConf) throws IOException
IOExceptiondefault RaftClientReply transferLeadership(RaftPeerId newLeader, long timeoutMs) throws IOException
IOExceptionRaftClientReply transferLeadership(RaftPeerId newLeader, RaftPeerId leaderId, long timeoutMs) throws IOException
IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.