Raft Consensus Algorithm
    Preparing search index...

    Interface RaftNodeInterface

    interface RaftNodeInterface {
        getApplicationState(): any;
        getCommittedIndex(): number;
        getCurrentTerm(): number;
        getEntries(startIndex: number, endIndex: number): Promise<LogEntry[]>;
        getLastApplied(): number;
        getLastLogIndex(): number;
        getLeaderId(): string | null;
        getNodeId(): string;
        getState(): RaftState;
        isLeader(): boolean;
        isStarted(): boolean;
        start(): Promise<void>;
        stop(): Promise<void>;
        submitCommand(command: Command): Promise<CommandResult>;
    }

    Implemented by

    Index

    Methods