Merge "Fixed for bug : 1171 - issue while creating subnet"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / 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.base.messages;
10
11 import akka.actor.ActorRef;
12 import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
13
14 import java.io.Serializable;
15
16 public class Replicate implements Serializable {
17     private final ActorRef clientActor;
18     private final String identifier;
19     private final ReplicatedLogEntry replicatedLogEntry;
20
21     public Replicate(ActorRef clientActor, String identifier,
22         ReplicatedLogEntry replicatedLogEntry) {
23
24         this.clientActor = clientActor;
25         this.identifier = identifier;
26         this.replicatedLogEntry = replicatedLogEntry;
27     }
28
29     public ActorRef getClientActor() {
30         return clientActor;
31     }
32
33     public String getIdentifier() {
34         return identifier;
35     }
36
37     public ReplicatedLogEntry getReplicatedLogEntry() {
38         return replicatedLogEntry;
39     }
40 }