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.sal.common.DataStoreIdentifier;
12 import org.opendaylight.controller.sal.core.api.Provider;
13 import org.opendaylight.yangtools.concepts.Registration;
14 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
15 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
16 import org.opendaylight.controller.md.sal.common.api.data.DataReader;;
18 public interface DataProviderService extends
20 DataProvisionService<InstanceIdentifier, CompositeNode>
24 * Adds {@link DataValidator} for specified Data Store
31 public void addValidator(DataStoreIdentifier store, DataValidator validator);
34 * Removes {@link DataValidator} from specified Data Store
40 public void removeValidator(DataStoreIdentifier store,
41 DataValidator validator);
44 * Adds {@link DataRefresher} for specified data store
49 void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
52 * Removes {@link DataRefresher} from specified data store
57 void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
60 Registration<DataReader<InstanceIdentifier, CompositeNode>> registerConfigurationReader(InstanceIdentifier path, DataReader<InstanceIdentifier, CompositeNode> reader);
62 Registration<DataReader<InstanceIdentifier, CompositeNode>> registerOperationalReader(InstanceIdentifier path, DataReader<InstanceIdentifier, CompositeNode> reader);
64 public interface DataRefresher extends Provider.ProviderFunctionality {
67 * Fired when some component explicitly requested the data refresh.
69 * The provider which exposed the {@link DataRefresher} should republish
70 * its provided data by editing the data in all affected data stores.