X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=version2%2Fsrc%2FC%2FTransaction.h;h=ad3a341d27b9a2a0e72c34ff6de9fa3556939c75;hb=ec6b65ba09fe295c36621a3386cb2571a8833203;hp=d04e47f79c78fb50721bb75344f2e9a021af5cc6;hpb=a2f47bf7088deea524750936103f5a683fd97b79;p=iotcloud.git diff --git a/version2/src/C/Transaction.h b/version2/src/C/Transaction.h index d04e47f..ad3a341 100644 --- a/version2/src/C/Transaction.h +++ b/version2/src/C/Transaction.h @@ -1,27 +1,29 @@ - +#ifndef TRANSACTION_H +#define TRANSACTION_H +#include "common.h" class Transaction { - - private Map parts = NULL; - private Set missingParts = NULL; - private List partsPendingSend = NULL; - private bool isComplete = false; - private bool hasLastPart = false; - private Set keyValueGuardSet = NULL; - private Set keyValueUpdateSet = NULL; - private bool isDead = false; - private int64_t sequenceNumber = -1; - private int64_t clientLocalSequenceNumber = -1; - private int64_t arbitratorId = -1; - private int64_t machineId = -1; - private Pair transactionId = NULL; - - private int nextPartToSend = 0; - private bool didSendAPartToServer = false; - - private TransactionStatus transactionStatus = NULL; - - private bool hadServerFailure = false; + private: + Hashtable parts = NULL; + Set missingParts = NULL; + List partsPendingSend = NULL; + bool isComplete = false; + bool hasLastPart = false; + Hashset * keyValueGuardSet = NULL; + Hashset * keyValueUpdateSet = NULL; + bool isDead = false; + int64_t sequenceNumber = -1; + int64_t clientLocalSequenceNumber = -1; + int64_t arbitratorId = -1; + int64_t machineId = -1; + Pair transactionId = NULL; + + int nextPartToSend = 0; + bool didSendAPartToServer = false; + + TransactionStatus transactionStatus = NULL; + + bool hadServerFailure = false; public Transaction() { parts = new HashMap(); @@ -297,4 +299,5 @@ class Transaction { } return true; } -} +}; +#endif