internal TentativeTx(int txID, string clientURL) { _txID = txID; _clientURL = clientURL; writtenObjects = new List <ServerObject>(); _txDecision = TransactionDecision.DEFAULT; }
// Only for participants internal void doCommit(int txID, string coordURL) { _myCoordinatorDecision = TransactionDecision.COMMIT; Replica.updateSucessor(TX.WRITTENOBJECTS); // writePermanentLog(); endTimer(); }
internal ParticipantManager(TentativeTx tx) { MY_URL = Datastore.SERVERURL + "Participant"; TX = tx; MY_DECISION = TransactionDecision.DEFAULT; COORDINATOR_DECISION = TransactionDecision.DEFAULT; //createLogDirectory(); }