2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.sal.core.api.data;
10 import org.opendaylight.controller.md.sal.common.api.data.DataProvisionService;
11 import org.opendaylight.controller.md.sal.common.api.data.DataReader;
12 import org.opendaylight.controller.sal.common.DataStoreIdentifier;
13 import org.opendaylight.controller.sal.core.api.Provider;
14 import org.opendaylight.yangtools.concepts.Registration;
15 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
16 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
20 * @deprecated Replaced by {@link org.opendaylight.controller.md.sal.dom.api.DOMDataBroker}
24 public interface DataProviderService extends
26 DataProvisionService<InstanceIdentifier, CompositeNode>
30 * Adds {@link DataValidator} for specified Data Store
37 public void addValidator(DataStoreIdentifier store, DataValidator validator);
40 * Removes {@link DataValidator} from specified Data Store
46 public void removeValidator(DataStoreIdentifier store,
47 DataValidator validator);
50 * Adds {@link DataRefresher} for specified data store
55 void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
58 * Removes {@link DataRefresher} from specified data store
63 void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
66 Registration<DataReader<InstanceIdentifier, CompositeNode>> registerConfigurationReader(InstanceIdentifier path, DataReader<InstanceIdentifier, CompositeNode> reader);
68 Registration<DataReader<InstanceIdentifier, CompositeNode>> registerOperationalReader(InstanceIdentifier path, DataReader<InstanceIdentifier, CompositeNode> reader);
70 public interface DataRefresher extends Provider.ProviderFunctionality {
73 * Fired when some component explicitly requested the data refresh.
75 * The provider which exposed the {@link DataRefresher} should republish
76 * its provided data by editing the data in all affected data stores.