Make CompositeModification serializable using protocol buffers
[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 implements SerializableMessage {
16
17     private final InstanceIdentifier path;
18     private final ActorPath dataChangeListenerPath;
19     private final AsyncDataBroker.DataChangeScope scope;
20
21
22     public RegisterChangeListener(InstanceIdentifier path,
23         ActorPath dataChangeListenerPath,
24         AsyncDataBroker.DataChangeScope scope) {
25         this.path = path;
26         this.dataChangeListenerPath = dataChangeListenerPath;
27         this.scope = scope;
28     }
29
30     public InstanceIdentifier getPath() {
31         return path;
32     }
33
34
35     public AsyncDataBroker.DataChangeScope getScope() {
36         return scope;
37     }
38
39     public ActorPath getDataChangeListenerPath() {
40         return dataChangeListenerPath;
41     }
42
43
44     @Override public Object toSerializable() {
45         throw new UnsupportedOperationException("foo");
46     }
47 }