public class GrpcLogAppender extends LogAppenderBase
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
INSTALL_SNAPSHOT_NOTIFICATION_INDEX |
static org.slf4j.Logger |
LOG |
DEFAULT_CLASS| 构造器和说明 |
|---|
GrpcLogAppender(RaftServer.Division server,
LeaderState leaderState,
FollowerInfo f) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getCallId() |
Comparator<Long> |
getCallIdComparator() |
GrpcService |
getServerRpc() |
long |
getWaitTimeMs() |
boolean |
hasPendingDataRequests() |
void |
run() |
boolean |
shouldSendAppendEntries() |
CompletableFuture<LifeCycle.State> |
stopAsync() |
getEventAwaitForSignal, getFollower, getHeartbeatWaitTimeMs, getLeaderState, getNextIndexForError, getNextIndexForInconsistency, getRemainingWaitTime, getServer, getWaitTimeMin, isRunning, newAppendEntriesRequest, newInstallSnapshotNotificationRequest, newInstallSnapshotRequests, resetHeartbeatTrigger, start, toString, triggerHeartbeatclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFollowerId, getRaftLog, hasAppendEntries, newLogAppenderDefault, notifyLogAppender, onFollowerTerm, shouldInstallSnapshot, stoppublic static final org.slf4j.Logger LOG
public static final int INSTALL_SNAPSHOT_NOTIFICATION_INDEX
public GrpcLogAppender(RaftServer.Division server, LeaderState leaderState, FollowerInfo f)
public GrpcService getServerRpc()
public void run()
throws IOException
IOExceptionpublic long getWaitTimeMs()
public CompletableFuture<LifeCycle.State> stopAsync()
stopAsync 在接口中 LogAppenderstopAsync 在类中 LogAppenderBasepublic boolean shouldSendAppendEntries()
shouldSendAppendEntries 在接口中 LogAppendershouldSendAppendEntries 在类中 LogAppenderBasepublic boolean hasPendingDataRequests()
public long getCallId()
public Comparator<Long> getCallIdComparator()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.