universal
Class OutcomeStore

java.lang.Object
  |
  +--universal.OutcomeStore

public class OutcomeStore
extends java.lang.Object

Used to store the decision return by the consensus when it is sucessful.


Field Summary
(package private)  int i
           
 java.util.Vector outcomes
          The vector uses to store the decisions
 
Constructor Summary
OutcomeStore()
           
 
Method Summary
 universal.StoreResult isCommitted(universal.Request req)
          Check whether a Request has already been processed.
 void setCommitted(universal.Outcome out)
          Stores the Outcome (Request, Reply, Update) return by the consensus when it is successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outcomes

public java.util.Vector outcomes
The vector uses to store the decisions


i

int i
Constructor Detail

OutcomeStore

public OutcomeStore()
Method Detail

isCommitted

public universal.StoreResult isCommitted(universal.Request req)
Check whether a Request has already been processed.
It also checks if some requests have their time expires and if it is the case that means that it's not possible that the client resends this request again, so it removes it.

Returns:
true if the request has already been committed with the Outcome (Request,Reply,Update) corresponding or false and null.

setCommitted

public void setCommitted(universal.Outcome out)
Stores the Outcome (Request, Reply, Update) return by the consensus when it is successful.