Convert sal-distributed-datastore to OSGi DS
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DistributedDataStoreInterface.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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 package org.opendaylight.controller.cluster.datastore;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.controller.cluster.datastore.utils.ActorUtils;
12 import org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener;
13 import org.opendaylight.mdsal.dom.spi.store.DOMStore;
14 import org.opendaylight.yangtools.concepts.ListenerRegistration;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16
17 /**
18  * The public interface exposed by an AbstractDataStore via the OSGi registry.
19  *
20  * @author Thomas Pantelis
21  */
22 public interface DistributedDataStoreInterface extends DOMStore {
23
24     ActorUtils getActorUtils();
25
26     @Beta
27     <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerShardConfigListener(
28             YangInstanceIdentifier internalPath, DOMDataTreeChangeListener delegate);
29
30     @Beta
31     <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerProxyListener(
32             YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard,
33             DOMDataTreeChangeListener delegate);
34 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.