public abstract class DLedgerStore extends Object
| Constructor and Description |
|---|
DLedgerStore() |
| Modifier and Type | Method and Description |
|---|---|
abstract DLedgerEntry |
appendAsFollower(DLedgerEntry entry,
long leaderTerm,
String leaderId) |
abstract DLedgerEntry |
appendAsLeader(DLedgerEntry entry) |
void |
flush() |
abstract DLedgerEntry |
get(Long index) |
abstract long |
getCommittedIndex() |
abstract long |
getLedgerBeginIndex() |
abstract long |
getLedgerEndIndex() |
abstract long |
getLedgerEndTerm() |
MemberState |
getMemberState() |
void |
shutdown() |
void |
startup() |
long |
truncate(DLedgerEntry entry,
long leaderTerm,
String leaderId) |
void |
updateCommittedIndex(long term,
long committedIndex) |
protected void |
updateLedgerEndIndexAndTerm() |
public MemberState getMemberState()
public abstract DLedgerEntry appendAsLeader(DLedgerEntry entry)
public abstract DLedgerEntry appendAsFollower(DLedgerEntry entry, long leaderTerm, String leaderId)
public abstract DLedgerEntry get(Long index)
public abstract long getCommittedIndex()
public void updateCommittedIndex(long term,
long committedIndex)
public abstract long getLedgerEndTerm()
public abstract long getLedgerEndIndex()
public abstract long getLedgerBeginIndex()
protected void updateLedgerEndIndexAndTerm()
public void flush()
public long truncate(DLedgerEntry entry, long leaderTerm, String leaderId)
public void startup()
public void shutdown()
Copyright © 2023. All rights reserved.