private TransactionStatus transactionStatus = null;
+ private boolean hadServerFailure = false;
+
public Transaction() {
parts = new HashMap<Integer, TransactionPart>();
keyValueGuardSet = new HashSet<KeyValue>();
return part;
}
+
+ public void setServerFailure() {
+ hadServerFailure = true;
+ }
+
+ public boolean getServerFailure() {
+ return hadServerFailure;
+ }
+
+
+ public void resetServerFailure() {
+ hadServerFailure = false;
+ }
+
+
public void setTransactionStatus(TransactionStatus _transactionStatus) {
transactionStatus = _transactionStatus;
}
if (kvGuard.getValue() != null) {
if ((kv == null) || (!kvGuard.getValue().equals(kv.getValue()))) {
+
+
+ if (kv != null) {
+ System.out.println(kvGuard.getValue() + " " + kv.getValue());
+ } else {
+ System.out.println(kvGuard.getValue() + " " + kv);
+ }
+
return false;
}
} else {
if (kv != null) {
+ System.out.println("kvGuard was nulled: " + kv);
return false;
}
}