public class StateMachineCaller
extends org.apache.rocketmq.remoting.common.ServiceThread
| Constructor and Description |
|---|
StateMachineCaller(DLedgerStore dLedgerStore,
StateMachine statemachine,
DLedgerEntryPusher entryPusher) |
| Modifier and Type | Method and Description |
|---|---|
DLedgerStore |
getdLedgerStore() |
Long |
getLastAppliedIndex() |
long |
getLastAppliedTerm() |
String |
getServiceName() |
SnapshotManager |
getSnapshotManager() |
StateMachine |
getStateMachine() |
boolean |
onCommitted(long committedIndex) |
boolean |
onSnapshotLoad(LoadSnapshotHook loadSnapshotAfter) |
boolean |
onSnapshotSave(SaveSnapshotHook saveSnapshotAfter) |
void |
registerSnapshotManager(SnapshotManager snapshotManager) |
void |
run() |
void |
setError(DLedgerServer server,
DLedgerException error) |
void |
shutdown() |
public StateMachineCaller(DLedgerStore dLedgerStore, StateMachine statemachine, DLedgerEntryPusher entryPusher)
public StateMachine getStateMachine()
public boolean onCommitted(long committedIndex)
public boolean onSnapshotLoad(LoadSnapshotHook loadSnapshotAfter)
public boolean onSnapshotSave(SaveSnapshotHook saveSnapshotAfter)
public void shutdown()
shutdown in class org.apache.rocketmq.remoting.common.ServiceThreadpublic void run()
public void setError(DLedgerServer server, DLedgerException error)
public String getServiceName()
getServiceName in class org.apache.rocketmq.remoting.common.ServiceThreadpublic Long getLastAppliedIndex()
public long getLastAppliedTerm()
public void registerSnapshotManager(SnapshotManager snapshotManager)
public SnapshotManager getSnapshotManager()
public DLedgerStore getdLedgerStore()
Copyright © 2022. All rights reserved.