public final class ServerImplUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static RaftServerProxy |
newRaftServer(RaftPeerId id,
RaftGroup group,
StateMachine.Registry stateMachineRegistry,
RaftProperties properties,
Parameters parameters)
For the case that all
RaftServerImpl objects share the same StateMachine. |
static RaftServerProxy |
newRaftServer(RaftPeerId id,
StateMachine.Registry stateMachineRegistry,
RaftProperties properties,
Parameters parameters) |
static TermIndex |
newTermIndex(long term,
long index) |
public static RaftServerProxy newRaftServer(RaftPeerId id, RaftGroup group, StateMachine.Registry stateMachineRegistry, RaftProperties properties, Parameters parameters) throws IOException
RaftServerImpl objects share the same StateMachine.IOExceptionpublic static RaftServerProxy newRaftServer(RaftPeerId id, StateMachine.Registry stateMachineRegistry, RaftProperties properties, Parameters parameters) throws IOException
IOExceptionpublic static TermIndex newTermIndex(long term, long index)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.