Merge "Serialization/Deserialization and a host of other fixes"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / internal / messages / Replicate.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.cluster.raft.internal.messages;
10
11 import akka.actor.ActorRef;
12 import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
13
14 public class Replicate {
15     private final ActorRef clientActor;
16     private final String identifier;
17     private final ReplicatedLogEntry replicatedLogEntry;
18
19     public Replicate(ActorRef clientActor, String identifier,
20         ReplicatedLogEntry replicatedLogEntry) {
21
22         this.clientActor = clientActor;
23         this.identifier = identifier;
24         this.replicatedLogEntry = replicatedLogEntry;
25     }
26
27     public ActorRef getClientActor() {
28         return clientActor;
29     }
30
31     public String getIdentifier() {
32         return identifier;
33     }
34
35     public ReplicatedLogEntry getReplicatedLogEntry() {
36         return replicatedLogEntry;
37     }
38 }