public class DLedgerServer extends AbstractDLedgerServer
| Constructor and Description |
|---|
DLedgerServer(DLedgerConfig dLedgerConfig) |
DLedgerServer(DLedgerConfig dLedgerConfig,
DLedgerRpcService dLedgerRpcService)
Start in proxy mode, use shared DLedgerRpcService
|
DLedgerServer(DLedgerConfig dLedgerConfig,
org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig) |
DLedgerServer(DLedgerConfig dLedgerConfig,
org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig,
org.apache.rocketmq.remoting.netty.NettyClientConfig nettyClientConfig) |
DLedgerServer(DLedgerConfig dLedgerConfig,
org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig,
org.apache.rocketmq.remoting.netty.NettyClientConfig nettyClientConfig,
org.apache.rocketmq.remoting.ChannelEventListener channelEventListener) |
public DLedgerServer(DLedgerConfig dLedgerConfig)
public DLedgerServer(DLedgerConfig dLedgerConfig, org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig)
public DLedgerServer(DLedgerConfig dLedgerConfig, org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig, org.apache.rocketmq.remoting.netty.NettyClientConfig nettyClientConfig)
public DLedgerServer(DLedgerConfig dLedgerConfig, org.apache.rocketmq.remoting.netty.NettyServerConfig nettyServerConfig, org.apache.rocketmq.remoting.netty.NettyClientConfig nettyClientConfig, org.apache.rocketmq.remoting.ChannelEventListener channelEventListener)
public DLedgerServer(DLedgerConfig dLedgerConfig, DLedgerRpcService dLedgerRpcService)
dLedgerConfig - DLedgerConfigdLedgerRpcService - Shared DLedgerRpcServicepublic void startup()
public void shutdown()
public MemberState getMemberState()
public void registerStateMachine(StateMachine fsm)
public StateMachine getStateMachine()
public CompletableFuture<HeartBeatResponse> handleHeartBeat(HeartBeatRequest request) throws Exception
Exceptionpublic CompletableFuture<VoteResponse> handleVote(VoteRequest request) throws Exception
Exceptionpublic CompletableFuture<AppendEntryResponse> handleAppend(AppendEntryRequest request) throws IOException
request - IOExceptionpublic CompletableFuture<GetEntriesResponse> handleGet(GetEntriesRequest request) throws IOException
IOExceptionpublic CompletableFuture<MetadataResponse> handleMetadata(MetadataRequest request) throws Exception
Exceptionpublic CompletableFuture<PullEntriesResponse> handlePull(PullEntriesRequest request)
public CompletableFuture<PushEntryResponse> handlePush(PushEntryRequest request) throws Exception
Exceptionpublic CompletableFuture<LeadershipTransferResponse> handleLeadershipTransfer(LeadershipTransferRequest request) throws Exception
Exception@Deprecated public DLedgerStore getdLedgerStore()
public DLedgerStore getDLedgerStore()
@Deprecated public DLedgerRpcService getdLedgerRpcService()
public DLedgerRpcService getDLedgerRpcService()
@Deprecated public DLedgerLeaderElector getdLedgerLeaderElector()
public DLedgerLeaderElector getDLedgerLeaderElector()
@Deprecated public DLedgerConfig getdLedgerConfig()
public String getListenAddress()
getListenAddress in class AbstractDLedgerServerpublic String getPeerAddr(String groupId, String selfId)
getPeerAddr in class AbstractDLedgerServerpublic DLedgerConfig getDLedgerConfig()
public org.apache.rocketmq.remoting.netty.NettyRemotingServer getRemotingServer()
getRemotingServer in class AbstractDLedgerServerpublic org.apache.rocketmq.remoting.netty.NettyRemotingClient getRemotingClient()
getRemotingClient in class AbstractDLedgerServerpublic boolean isLeader()
Copyright © 2023. All rights reserved.