| 程序包 | 说明 |
|---|---|
| org.apache.ratis.protocol | |
| org.apache.ratis.protocol.exceptions | |
| org.apache.ratis.util |
| 限定符和类型 | 方法和说明 |
|---|---|
RaftPeerId |
RaftPeer.getId() |
RaftPeerId |
TransferLeadershipRequest.getNewLeader() |
RaftPeerId |
RaftGroupMemberId.getPeerId() |
RaftPeerId |
RoutingTable.getPrimary() |
static RaftPeerId |
RaftPeerId.getRaftPeerId(String id) |
RaftPeerId |
RaftClientMessage.getServerId() |
static RaftPeerId |
RaftPeerId.valueOf(org.apache.ratis.thirdparty.com.google.protobuf.ByteString id) |
static RaftPeerId |
RaftPeerId.valueOf(String id) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<RaftPeerId> |
RoutingTable.getSuccessors(RaftPeerId peerId) |
| 限定符和类型 | 方法和说明 |
|---|---|
RoutingTable.Builder |
RoutingTable.Builder.addSuccessor(RaftPeerId peerId,
RaftPeerId successor) |
RoutingTable.Builder |
RoutingTable.Builder.addSuccessors(RaftPeerId peerId,
Collection<RaftPeerId> successors) |
RoutingTable.Builder |
RoutingTable.Builder.addSuccessors(RaftPeerId peerId,
RaftPeerId... successors) |
RoutingTable.Builder |
RoutingTable.Builder.addSuccessors(RaftPeerId peerId,
RaftPeerId... successors) |
RaftPeer |
RaftGroup.getPeer(RaftPeerId id) |
Set<RaftPeerId> |
RoutingTable.getSuccessors(RaftPeerId peerId) |
static GroupManagementRequest |
GroupManagementRequest.newAdd(ClientId clientId,
RaftPeerId serverId,
long callId,
RaftGroup group)
The same as newAdd(clientId, serverId, callId, group, true).
|
static GroupManagementRequest |
GroupManagementRequest.newAdd(ClientId clientId,
RaftPeerId serverId,
long callId,
RaftGroup group,
boolean format) |
static SnapshotManagementRequest |
SnapshotManagementRequest.newCreate(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
long timeoutMs) |
static LeaderElectionManagementRequest |
LeaderElectionManagementRequest.newPause(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId) |
static GroupManagementRequest |
GroupManagementRequest.newRemove(ClientId clientId,
RaftPeerId serverId,
long callId,
RaftGroupId groupId,
boolean deleteDirectory,
boolean renameDirectory) |
static LeaderElectionManagementRequest |
LeaderElectionManagementRequest.newResume(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId) |
RaftPeer.Builder |
RaftPeer.Builder.setId(RaftPeerId id) |
RaftClientRequest.Builder |
RaftClientRequest.Builder.setLeaderId(RaftPeerId leaderId) |
RaftClientRequest.Builder |
RaftClientRequest.Builder.setServerId(RaftPeerId serverId) |
RaftClientReply.Builder |
RaftClientReply.Builder.setServerId(RaftPeerId serverId) |
static RaftGroupMemberId |
RaftGroupMemberId.valueOf(RaftPeerId peerId,
RaftGroupId groupId) |
| 限定符和类型 | 方法和说明 |
|---|---|
RoutingTable.Builder |
RoutingTable.Builder.addSuccessors(RaftPeerId peerId,
Collection<RaftPeerId> successors) |
static RoutingTable |
RoutingTable.newRoutingTable(Map<RaftPeerId,Set<RaftPeerId>> map) |
static RoutingTable |
RoutingTable.newRoutingTable(Map<RaftPeerId,Set<RaftPeerId>> map) |
| 构造器和说明 |
|---|
GroupInfoReply(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
Collection<org.apache.ratis.proto.RaftProtos.CommitInfoProto> commitInfos,
RaftGroup group,
org.apache.ratis.proto.RaftProtos.RoleInfoProto roleInfoProto,
boolean isRaftStorageHealthy,
org.apache.ratis.proto.RaftProtos.RaftConfigurationProto conf) |
GroupInfoRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId) |
GroupListReply(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
List<RaftGroupId> groupIds) |
GroupListRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId) |
LeaderElectionManagementRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
LeaderElectionManagementRequest.Op op) |
RaftClientRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
RaftClientRequest.Type type)
Construct a request for sending to the given server.
|
RaftClientRequest(ClientId clientId,
RaftPeerId leaderId,
RaftGroupId groupId,
long callId,
RaftClientRequest.Type type,
long timeoutMs)
Construct a request for sending to the Leader.
|
SetConfigurationRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
List<RaftPeer> peers) |
SetConfigurationRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
List<RaftPeer> peers,
List<RaftPeer> listeners) |
SetConfigurationRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
SetConfigurationRequest.Arguments arguments) |
SnapshotManagementRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
long timeoutMs,
SnapshotManagementRequest.Op op) |
TransferLeadershipRequest(ClientId clientId,
RaftPeerId serverId,
RaftGroupId groupId,
long callId,
RaftPeerId newLeader,
long timeoutMs) |
| 构造器和说明 |
|---|
DataStreamException(RaftPeerId peerId,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
PROXY |
PeerProxyMap.getProxy(RaftPeerId id) |
boolean |
PeerProxyMap.handleException(RaftPeerId serverId,
Throwable e,
boolean reconnect) |
void |
PeerProxyMap.resetProxy(RaftPeerId id) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Iterable<org.apache.ratis.proto.RaftProtos.RaftPeerIdProto> |
ProtoUtils.toRaftPeerIdProtos(Collection<RaftPeerId> peers) |
static Iterable<org.apache.ratis.proto.RaftProtos.RouteProto> |
ProtoUtils.toRouteProtos(Map<RaftPeerId,Set<RaftPeerId>> routingTable) |
static Iterable<org.apache.ratis.proto.RaftProtos.RouteProto> |
ProtoUtils.toRouteProtos(Map<RaftPeerId,Set<RaftPeerId>> routingTable) |
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.