public final class GrpcService extends RaftServerRpcWithProxy<GrpcServerProtocolClient,PeerProxyMap<GrpcServerProtocolClient>>
RaftServerRpc.| 限定符和类型 | 类和说明 |
|---|---|
static class |
GrpcService.Builder |
org.apache.ratis.server.protocol.RaftServerProtocol.Op| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GRPC_SEND_SERVER_REQUEST |
addRaftPeers, close, getId, getProxies, handleException, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRaftPeerspublic static final String GRPC_SEND_SERVER_REQUEST
public static GrpcService.Builder newBuilder()
public MetricServerInterceptor getServerInterceptor()
public SupportedRpcType getRpcType()
public void startImpl()
public void closeImpl()
throws IOException
public void notifyNotLeader(RaftGroupId groupId)
public InetSocketAddress getInetSocketAddress()
public InetSocketAddress getClientServerAddress()
public InetSocketAddress getAdminServerAddress()
public org.apache.ratis.server.protocol.RaftServerAsynchronousProtocol async()
public org.apache.ratis.proto.RaftProtos.AppendEntriesReplyProto appendEntries(org.apache.ratis.proto.RaftProtos.AppendEntriesRequestProto request)
public org.apache.ratis.proto.RaftProtos.InstallSnapshotReplyProto installSnapshot(org.apache.ratis.proto.RaftProtos.InstallSnapshotRequestProto request)
public org.apache.ratis.proto.RaftProtos.RequestVoteReplyProto requestVote(org.apache.ratis.proto.RaftProtos.RequestVoteRequestProto request) throws IOException
IOExceptionpublic org.apache.ratis.proto.RaftProtos.StartLeaderElectionReplyProto startLeaderElection(org.apache.ratis.proto.RaftProtos.StartLeaderElectionRequestProto request) throws IOException
IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.