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.yang.data.api.CompositeNode;
14 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
16 public interface DataProviderService extends
18 DataProvisionService<InstanceIdentifier, CompositeNode>
22 * Adds {@link DataValidator} for specified Data Store
29 public void addValidator(DataStoreIdentifier store, DataValidator validator);
32 * Removes {@link DataValidator} from specified Data Store
38 public void removeValidator(DataStoreIdentifier store,
39 DataValidator validator);
42 * Adds {@link DataRefresher} for specified data store
47 void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
50 * Removes {@link DataRefresher} from specified data store
55 void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
57 public interface DataRefresher extends Provider.ProviderFunctionality {
60 * Fired when some component explicitly requested the data refresh.
62 * The provider which exposed the {@link DataRefresher} should republish
63 * its provided data by editing the data in all affected data stores.