public final class NettyRpcService extends RaftServerRpcWithProxy<NettyRpcProxy,NettyRpcProxy.PeerMap>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
NettyRpcService.Builder |
org.apache.ratis.server.protocol.RaftServerProtocol.Op| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
SEND_SERVER_REQUEST |
addRaftPeers, close, getId, getProxies, handleException, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasync, getAdminServerAddress, getClientServerAddress, notifyNotLeaderaddRaftPeerspublic static final org.slf4j.Logger LOG
public static final String SEND_SERVER_REQUEST
public static NettyRpcService.Builder newBuilder()
public SupportedRpcType getRpcType()
public void startImpl()
throws IOException
public void closeImpl()
throws IOException
public InetSocketAddress getInetSocketAddress()
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
IOExceptionpublic org.apache.ratis.proto.RaftProtos.AppendEntriesReplyProto appendEntries(org.apache.ratis.proto.RaftProtos.AppendEntriesRequestProto request) throws IOException
IOExceptionpublic org.apache.ratis.proto.RaftProtos.InstallSnapshotReplyProto installSnapshot(org.apache.ratis.proto.RaftProtos.InstallSnapshotRequestProto request) throws IOException
IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.