public RaftServer(RaftContext context){ this.id = context.getServerStateManager().getServerId(); this.state = context.getServerStateManager().readState(); this.logStore = context.getServerStateManager().loadLogStore(); this.config = context.getServerStateManager().loadClusterConfiguration(); this.stateMachine = context.getStateMachine();
public RaftServer(RaftContext context){ this.id = context.getServerStateManager().getServerId(); this.state = context.getServerStateManager().readState(); this.logStore = context.getServerStateManager().loadLogStore(); this.config = context.getServerStateManager().loadClusterConfiguration(); this.stateMachine = context.getStateMachine();
public RaftServer(RaftContext context){ this.id = context.getServerStateManager().getServerId(); this.state = context.getServerStateManager().readState(); this.logStore = context.getServerStateManager().loadLogStore(); this.config = context.getServerStateManager().loadClusterConfiguration(); this.stateMachine = context.getStateMachine();