public class DLedgerServer extends AbstractDLedgerServer
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
DLedgerConfig |
getdLedgerConfig()
已过时。
|
DLedgerConfig |
getDLedgerConfig() |
DLedgerLeaderElector |
getdLedgerLeaderElector()
已过时。
|
DLedgerLeaderElector |
getDLedgerLeaderElector() |
DLedgerRpcService |
getdLedgerRpcService()
已过时。
|
DLedgerRpcService |
getDLedgerRpcService() |
DLedgerStore |
getdLedgerStore()
已过时。
|
DLedgerStore |
getDLedgerStore() |
java.lang.String |
getListenAddress() |
MemberState |
getMemberState() |
java.lang.String |
getPeerAddr(java.lang.String groupId,
java.lang.String selfId) |
org.apache.rocketmq.remoting.netty.NettyRemotingClient |
getRemotingClient() |
org.apache.rocketmq.remoting.netty.NettyRemotingServer |
getRemotingServer() |
StateMachine |
getStateMachine() |
java.util.concurrent.CompletableFuture<AppendEntryResponse> |
handleAppend(AppendEntryRequest request)
Handle the append requests: 1.append the entry to local store 2.submit the future to entry pusher and wait the
quorum ack 3.if the pending requests are full, then reject it immediately
|
java.util.concurrent.CompletableFuture<GetEntriesResponse> |
handleGet(GetEntriesRequest request) |
java.util.concurrent.CompletableFuture<HeartBeatResponse> |
handleHeartBeat(HeartBeatRequest request) |
java.util.concurrent.CompletableFuture<LeadershipTransferResponse> |
handleLeadershipTransfer(LeadershipTransferRequest request) |
java.util.concurrent.CompletableFuture<MetadataResponse> |
handleMetadata(MetadataRequest request) |
java.util.concurrent.CompletableFuture<PullEntriesResponse> |
handlePull(PullEntriesRequest request) |
java.util.concurrent.CompletableFuture<PushEntryResponse> |
handlePush(PushEntryRequest request) |
java.util.concurrent.CompletableFuture<VoteResponse> |
handleVote(VoteRequest request) |
boolean |
isLeader() |
void |
registerStateMachine(StateMachine fsm) |
void |
shutdown()
Shutdown, if the DLedgerRpcService is exclusive for this DLedgerServer, we should also shut down it.
|
void |
startup()
Start up, if the DLedgerRpcService is exclusive for this DLedgerServer, we should also start up it.
|
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 java.util.concurrent.CompletableFuture<HeartBeatResponse> handleHeartBeat(HeartBeatRequest request) throws java.lang.Exception
java.lang.Exceptionpublic java.util.concurrent.CompletableFuture<VoteResponse> handleVote(VoteRequest request) throws java.lang.Exception
java.lang.Exceptionpublic java.util.concurrent.CompletableFuture<AppendEntryResponse> handleAppend(AppendEntryRequest request) throws java.io.IOException
request - java.io.IOExceptionpublic java.util.concurrent.CompletableFuture<GetEntriesResponse> handleGet(GetEntriesRequest request) throws java.io.IOException
java.io.IOExceptionpublic java.util.concurrent.CompletableFuture<MetadataResponse> handleMetadata(MetadataRequest request) throws java.lang.Exception
java.lang.Exceptionpublic java.util.concurrent.CompletableFuture<PullEntriesResponse> handlePull(PullEntriesRequest request)
public java.util.concurrent.CompletableFuture<PushEntryResponse> handlePush(PushEntryRequest request) throws java.lang.Exception
java.lang.Exceptionpublic java.util.concurrent.CompletableFuture<LeadershipTransferResponse> handleLeadershipTransfer(LeadershipTransferRequest request) throws java.lang.Exception
java.lang.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 java.lang.String getListenAddress()
getListenAddress 在类中 AbstractDLedgerServerpublic java.lang.String getPeerAddr(java.lang.String groupId,
java.lang.String selfId)
getPeerAddr 在类中 AbstractDLedgerServerpublic DLedgerConfig getDLedgerConfig()
public org.apache.rocketmq.remoting.netty.NettyRemotingServer getRemotingServer()
getRemotingServer 在类中 AbstractDLedgerServerpublic org.apache.rocketmq.remoting.netty.NettyRemotingClient getRemotingClient()
getRemotingClient 在类中 AbstractDLedgerServerpublic boolean isLeader()
Copyright © 2022. All Rights Reserved.