Remove snapshot after startup and fix related bug
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ClientRequestTrackerImpl.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;
10
11 import akka.actor.ActorRef;
12 import org.opendaylight.yangtools.concepts.Identifier;
13
14 public class ClientRequestTrackerImpl implements ClientRequestTracker {
15
16     private final ActorRef clientActor;
17     private final Identifier identifier;
18     private final long logIndex;
19
20     public ClientRequestTrackerImpl(ActorRef clientActor, Identifier identifier, long logIndex) {
21
22         this.clientActor = clientActor;
23
24         this.identifier = identifier;
25
26         this.logIndex = logIndex;
27     }
28
29     @Override
30     public ActorRef getClientActor() {
31         return clientActor;
32     }
33
34     @Override
35     public long getIndex() {
36         return logIndex;
37     }
38
39     @Override
40     public Identifier getIdentifier() {
41         return identifier;
42     }
43 }