Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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();
 }