public interface RaftServer extends Closeable, RpcType.Get, RaftServerProtocol, RaftServerAsynchronousProtocol, RaftClientProtocol, RaftClientAsynchronousProtocol, AdminProtocol, AdminAsynchronousProtocol
| Modifier and Type | Interface and Description |
|---|---|
static class |
RaftServer.Builder
To build
RaftServer objects. |
RaftServerProtocol.Op| Modifier and Type | Method and Description |
|---|---|
ServerFactory |
getFactory() |
Iterable<RaftGroupId> |
getGroupIds() |
Iterable<RaftGroup> |
getGroups() |
RaftPeerId |
getId() |
LifeCycle.State |
getLifeCycleState() |
RaftProperties |
getProperties() |
static RaftServer.Builder |
newBuilder() |
void |
start()
Start this server.
|
getRpcTypeappendEntries, installSnapshot, requestVoteappendEntriesAsyncsetConfiguration, submitClientRequestsetConfigurationAsync, submitClientRequestAsyncgetGroupInfo, getGroupList, groupManagementgetGroupInfoAsync, getGroupListAsync, groupManagementAsyncRaftPeerId getId()
Iterable<RaftGroupId> getGroupIds()
Iterable<RaftGroup> getGroups() throws IOException
IOExceptionRaftProperties getProperties()
ServerFactory getFactory()
void start()
throws IOException
IOExceptionLifeCycle.State getLifeCycleState()
static RaftServer.Builder newBuilder()
RaftServer.Builder.Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.