public class RaftServerProxy extends Object implements RaftServer
RaftServer.BuilderRaftServerProtocol.Op| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewBuilderpublic RaftPeerId getId()
getId in interface RaftServerpublic List<RaftGroupId> getGroupIds()
getGroupIds in interface RaftServerpublic Iterable<RaftGroup> getGroups() throws IOException
getGroups in interface RaftServerIOExceptionpublic RpcType getRpcType()
getRpcType in interface RpcType.Getpublic ServerFactory getFactory()
getFactory in interface RaftServerpublic RaftProperties getProperties()
getProperties in interface RaftServerpublic RaftServerRpc getServerRpc()
public boolean containsGroup(RaftGroupId groupId)
public CompletableFuture<RaftServerImpl> addGroup(RaftGroup group)
public RaftServerImpl getImpl(RaftGroupId groupId) throws IOException
IOExceptionpublic LifeCycle.State getLifeCycleState()
getLifeCycleState in interface RaftServerpublic void start()
throws IOException
RaftServerstart in interface RaftServerIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic CompletableFuture<RaftClientReply> submitClientRequestAsync(RaftClientRequest request)
submitClientRequestAsync in interface RaftClientAsynchronousProtocolpublic RaftClientReply submitClientRequest(RaftClientRequest request) throws IOException
submitClientRequest in interface RaftClientProtocolIOExceptionpublic RaftClientReply setConfiguration(SetConfigurationRequest request) throws IOException
setConfiguration in interface RaftClientProtocolIOExceptionpublic RaftClientReply groupManagement(GroupManagementRequest request) throws IOException
groupManagement in interface AdminProtocolIOExceptionpublic CompletableFuture<RaftClientReply> groupManagementAsync(GroupManagementRequest request)
groupManagementAsync in interface AdminAsynchronousProtocolpublic GroupListReply getGroupList(GroupListRequest request)
getGroupList in interface AdminProtocolpublic CompletableFuture<GroupListReply> getGroupListAsync(GroupListRequest request)
getGroupListAsync in interface AdminAsynchronousProtocolpublic GroupInfoReply getGroupInfo(GroupInfoRequest request) throws IOException
getGroupInfo in interface AdminProtocolIOExceptionpublic CompletableFuture<GroupInfoReply> getGroupInfoAsync(GroupInfoRequest request)
getGroupInfoAsync in interface AdminAsynchronousProtocolpublic CompletableFuture<RaftClientReply> setConfigurationAsync(SetConfigurationRequest request)
setConfigurationAsync in interface RaftClientAsynchronousProtocolpublic org.apache.ratis.proto.RaftProtos.RequestVoteReplyProto requestVote(org.apache.ratis.proto.RaftProtos.RequestVoteRequestProto request) throws IOException
requestVote in interface RaftServerProtocolIOExceptionpublic CompletableFuture<org.apache.ratis.proto.RaftProtos.AppendEntriesReplyProto> appendEntriesAsync(org.apache.ratis.proto.RaftProtos.AppendEntriesRequestProto request)
appendEntriesAsync in interface RaftServerAsynchronousProtocolpublic org.apache.ratis.proto.RaftProtos.AppendEntriesReplyProto appendEntries(org.apache.ratis.proto.RaftProtos.AppendEntriesRequestProto request) throws IOException
appendEntries in interface RaftServerProtocolIOExceptionpublic org.apache.ratis.proto.RaftProtos.InstallSnapshotReplyProto installSnapshot(org.apache.ratis.proto.RaftProtos.InstallSnapshotRequestProto request) throws IOException
installSnapshot in interface RaftServerProtocolIOExceptionCopyright © 2017–2020 The Apache Software Foundation. All rights reserved.