public LogEntry(int term, int index, int quantity, ENTRY_COMMAND command, string clientActorPath, bool responseSent, string giveUpForFrontEndPath) { this.term = term; this.index = index; this.quantity = quantity; this.command = command; this.clientActorPath = clientActorPath; this.responseSent = responseSent; this.giveUpForFrontEndPath = giveUpForFrontEndPath; }
public void append(int term, int ticketQuantity, ENTRY_COMMAND command, string clientActorPath, bool responseSent, string giveUpForFrontEndPath) { this.log.Add(new LogEntry(term, getLastLogIndex() + 1, ticketQuantity, command, clientActorPath, responseSent, giveUpForFrontEndPath)); this.computeTentativeState(); }