Merge "Removed BundleContext from Broker.register{Consumer,Provider}"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / internal / messages / Replicate.java
index ee08bc1b41dc32a821d29f2edc97c8204f749e31..6ff7cfce5c6c9b905fdd30a6e8bc5c0323e3ac6b 100644 (file)
@@ -8,9 +8,31 @@
 
 package org.opendaylight.controller.cluster.raft.internal.messages;
 
-/**
- * Sent to a replicator when log entries need to be replicated to other
- * members in the cluster
- */
+import akka.actor.ActorRef;
+import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
+
 public class Replicate {
+    private final ActorRef clientActor;
+    private final String identifier;
+    private final ReplicatedLogEntry replicatedLogEntry;
+
+    public Replicate(ActorRef clientActor, String identifier,
+        ReplicatedLogEntry replicatedLogEntry) {
+
+        this.clientActor = clientActor;
+        this.identifier = identifier;
+        this.replicatedLogEntry = replicatedLogEntry;
+    }
+
+    public ActorRef getClientActor() {
+        return clientActor;
+    }
+
+    public String getIdentifier() {
+        return identifier;
+    }
+
+    public ReplicatedLogEntry getReplicatedLogEntry() {
+        return replicatedLogEntry;
+    }
 }