| 程序包 | 说明 |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.core | |
| com.alipay.sofa.jraft.rpc.impl.cli |
| 限定符和类型 | 方法和说明 |
|---|---|
static Node |
RaftServiceFactory.createAndInitRaftNode(String groupId,
PeerId serverId,
NodeOptions opts)
Create and initialize a raft node with node options.
|
static Node |
RaftServiceFactory.createRaftNode(String groupId,
PeerId serverId)
Create a raft node with group id and it's serverId.
|
Node |
NodeManager.get(String groupId,
PeerId peerId)
Get node by groupId and peer.
|
Node |
RaftGroupService.getRaftNode() |
Node |
RaftGroupService.start()
Starts the raft group service, returns the raft node.
|
Node |
RaftGroupService.start(boolean startRpcServer)
Starts the raft group service, returns the raft node.
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Node> |
NodeManager.getAllNodes()
Get all nodes
|
List<Node> |
NodeManager.getNodesByGroupId(String groupId)
Get all nodes in a raft group.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
NodeManager.add(Node node)
Adds a node.
|
boolean |
NodeManager.remove(Node node)
Remove a node.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
NodeImpl
The raft replica node implementation.
|
| 限定符和类型 | 字段和说明 |
|---|---|
Node |
BaseCliRequestProcessor.CliRequestContext.node
The found node.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Node |
BaseCliRequestProcessor.getNode(String groupId,
PeerId peerId,
Status st) |
| 构造器和说明 |
|---|
CliRequestContext(Node ndoe,
String groupId,
PeerId peerId) |
Copyright © 2021. All rights reserved.