public final class NettyRpcService extends RaftServerRpcWithProxy<NettyRpcProxy,NettyRpcProxy.PeerMap>
| Modifier and Type | Class and Description |
|---|---|
static class |
NettyRpcService.Builder |
org.apache.ratis.server.protocol.RaftServerProtocol.Op| Modifier and Type | Field and Description |
|---|---|
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
startImpl in class RaftServerRpcWithProxy<NettyRpcProxy,NettyRpcProxy.PeerMap>IOExceptionpublic void closeImpl()
throws IOException
closeImpl in class RaftServerRpcWithProxy<NettyRpcProxy,NettyRpcProxy.PeerMap>IOExceptionpublic 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–2023 The Apache Software Foundation. All rights reserved.