Merge changes I8598d0bd,I560c2072
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / ListenerRegistrationProxy.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;
10
11 import akka.actor.ActorPath;
12 import org.opendaylight.yangtools.concepts.ListenerRegistration;
13
14 /**
15  * ListenerRegistrationProxy acts as a proxy for a ListenerRegistration that was done on a remote shard
16  *
17  * Registering a DataChangeListener on the Data Store creates a new instance of the ListenerRegistrationProxy
18  * The ListenerRegistrationProxy talks to a remote ListenerRegistration actor.
19  */
20 public class ListenerRegistrationProxy implements ListenerRegistration {
21     private final ActorPath listenerRegistrationPath;
22
23     public ListenerRegistrationProxy(ActorPath listenerRegistrationPath) {
24
25         this.listenerRegistrationPath = listenerRegistrationPath;
26     }
27
28     @Override
29     public Object getInstance() {
30         throw new UnsupportedOperationException("getInstance");
31     }
32
33     @Override
34     public void close() {
35         throw new UnsupportedOperationException("close");
36     }
37 }