public final class RaftServiceFactory extends Object
| 构造器和说明 |
|---|
RaftServiceFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CliService |
createAndInitCliService(CliOptions cliOptions)
Create and initialize a CliService instance.
|
static Node |
createAndInitRaftNode(String groupId,
PeerId serverId,
NodeOptions opts)
Create and initialize a raft node with node options.
|
static CliService |
createCliService()
Create a
CliService instance. |
static Node |
createRaftNode(String groupId,
PeerId serverId)
Create a raft node with group id and it's serverId.
|
public static Node createRaftNode(String groupId, PeerId serverId)
public static Node createAndInitRaftNode(String groupId, PeerId serverId, NodeOptions opts)
IllegalStateException when fail to initialize.public static CliService createCliService()
CliService instance.public static CliService createAndInitCliService(CliOptions cliOptions)
Copyright © 2021. All rights reserved.