示例#1
0
 internal TentativeTx(int txID, string clientURL)
 {
     _txID          = txID;
     _clientURL     = clientURL;
     writtenObjects = new List <ServerObject>();
     _txDecision    = TransactionDecision.DEFAULT;
 }
示例#2
0
        // Only for participants
        internal void doCommit(int txID, string coordURL)
        {
            _myCoordinatorDecision = TransactionDecision.COMMIT;

            Replica.updateSucessor(TX.WRITTENOBJECTS);
            //  writePermanentLog();
            endTimer();
        }
示例#3
0
 internal ParticipantManager(TentativeTx tx)
 {
     MY_URL               = Datastore.SERVERURL + "Participant";
     TX                   = tx;
     MY_DECISION          = TransactionDecision.DEFAULT;
     COORDINATOR_DECISION = TransactionDecision.DEFAULT;
     //createLogDirectory();
 }