2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.cluster.raft.base.messages;
11 import akka.actor.ActorRef;
12 import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
13 import org.opendaylight.yangtools.concepts.Identifier;
16 * Local message sent by a RaftActor to itself to signal state has been applied to the state machine.
18 public class ApplyState {
19 private final ActorRef clientActor;
20 private final Identifier identifier;
21 private final ReplicatedLogEntry replicatedLogEntry;
23 public ApplyState(ActorRef clientActor, Identifier identifier, ReplicatedLogEntry replicatedLogEntry) {
24 this.clientActor = clientActor;
25 this.identifier = identifier;
26 this.replicatedLogEntry = replicatedLogEntry;
29 public ActorRef getClientActor() {
33 public Identifier getIdentifier() {
37 public ReplicatedLogEntry getReplicatedLogEntry() {
38 return replicatedLogEntry;
42 public String toString() {
43 return "ApplyState [identifier=" + identifier + ", replicatedLogEntry=" + replicatedLogEntry + "]";