Basic DistributedDataStoreIntegrationTest added
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / RegisterChangeListener.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.datastore.messages;
10
11 import akka.actor.ActorPath;
12 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker;
13 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
14
15 public class RegisterChangeListener {
16     private final InstanceIdentifier path;
17     private final ActorPath dataChangeListenerPath;
18     private final AsyncDataBroker.DataChangeScope scope;
19
20
21     public RegisterChangeListener(InstanceIdentifier path,
22         ActorPath dataChangeListenerPath,
23         AsyncDataBroker.DataChangeScope scope) {
24         this.path = path;
25         this.dataChangeListenerPath = dataChangeListenerPath;
26         this.scope = scope;
27     }
28
29     public InstanceIdentifier getPath() {
30         return path;
31     }
32
33
34     public AsyncDataBroker.DataChangeScope getScope() {
35         return scope;
36     }
37
38     public ActorPath getDataChangeListenerPath() {
39         return dataChangeListenerPath;
40     }
41 }