public interface RaftServer extends Closeable, RpcType.Get, RaftServerProtocol, RaftServerAsynchronousProtocol, RaftClientProtocol, RaftClientAsynchronousProtocol, AdminProtocol, AdminAsynchronousProtocol
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
RaftServer.Builder
To build
RaftServer objects. |
static interface |
RaftServer.Division
A division of a
RaftServer for a particular RaftGroup. |
RaftServerProtocol.Op| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
| 限定符和类型 | 方法和说明 |
|---|---|
DataStreamServerRpc |
getDataStreamServerRpc() |
RaftServer.Division |
getDivision(RaftGroupId groupId) |
ServerFactory |
getFactory() |
Iterable<RaftGroupId> |
getGroupIds() |
Iterable<RaftGroup> |
getGroups() |
RaftPeerId |
getId() |
LifeCycle.State |
getLifeCycleState() |
RaftPeer |
getPeer() |
RaftProperties |
getProperties() |
default RpcType |
getRpcType() |
RaftServerRpc |
getServerRpc() |
static RaftServer.Builder |
newBuilder() |
void |
start()
Start this server.
|
appendEntries, installSnapshot, requestVote, startLeaderElectionappendEntriesAsync, readIndexAsyncsubmitClientRequestsubmitClientRequestAsyncgetGroupInfo, getGroupList, groupManagement, leaderElectionManagement, setConfiguration, snapshotManagement, transferLeadershipgetGroupInfoAsync, getGroupListAsync, groupManagementAsync, leaderElectionManagementAsync, setConfigurationAsync, snapshotManagementAsync, transferLeadershipAsyncRaftPeerId getId()
RaftPeer getPeer()
RaftPeer for this server.
To obtain a specific RaftPeer for a RaftGroup, use RaftServer.Division.getPeer().Iterable<RaftGroupId> getGroupIds()
Iterable<RaftGroup> getGroups() throws IOException
IOExceptionRaftServer.Division getDivision(RaftGroupId groupId) throws IOException
IOExceptionRaftProperties getProperties()
RaftServerRpc getServerRpc()
DataStreamServerRpc getDataStreamServerRpc()
default RpcType getRpcType()
getRpcType 在接口中 RpcType.GetRpcType.ServerFactory getFactory()
void start()
throws IOException
IOExceptionLifeCycle.State getLifeCycleState()
static RaftServer.Builder newBuilder()
RaftServer.Builder.Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.