Bug 4105: Pass ModuleShardConfiguration with CreateShard
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / identifiers / TransactionIdentifier.java
index 32637a578e2d2af08c79f160bade7a9e2faf62aa..5a365f28a3e45abcc794b6de1f8349125cd9a2ee 100644 (file)
@@ -11,7 +11,15 @@ package org.opendaylight.controller.cluster.datastore.identifiers;
 import com.google.common.base.Preconditions;
 
 public class TransactionIdentifier {
-    private static final String TX_SEPARATOR = "-txn-";
+    protected static final String TX_SEPARATOR = "-txn-";
+
+    protected String getMemberName() {
+        return memberName;
+    }
+
+    protected long getCounter() {
+        return counter;
+    }
 
     private final String memberName;
     private final long counter;
@@ -22,6 +30,14 @@ public class TransactionIdentifier {
         this.counter = counter;
     }
 
+    public String getChainId() {
+        return "";
+    }
+
+    public static TransactionIdentifier create(String memberName, long counter) {
+        return new TransactionIdentifier(memberName, counter);
+    }
+
     @Override
     public boolean equals(Object o) {
         if (this == o) {
@@ -59,4 +75,5 @@ public class TransactionIdentifier {
 
         return stringRepresentation;
     }
+
 }