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.sal.common.DataStoreIdentifier;
11 import org.opendaylight.controller.sal.core.api.Provider;
13 public interface DataProviderService extends DataBrokerService {
16 * Adds {@link DataValidator} for specified Data Store
23 public void addValidator(DataStoreIdentifier store, DataValidator validator);
26 * Removes {@link DataValidator} from specified Data Store
32 public void removeValidator(DataStoreIdentifier store,
33 DataValidator validator);
36 * Adds {@link DataCommitHandler} for specified data store
41 void addCommitHandler(DataStoreIdentifier store, DataCommitHandler provider);
44 * Removes {@link DataCommitHandler} from specified data store
49 void removeCommitHandler(DataStoreIdentifier store,
50 DataCommitHandler provider);
53 * Adds {@link DataRefresher} for specified data store
58 void addRefresher(DataStoreIdentifier store, DataRefresher refresher);
61 * Removes {@link DataRefresher} from specified data store
66 void removeRefresher(DataStoreIdentifier store, DataRefresher refresher);
68 public interface DataRefresher extends Provider.ProviderFunctionality {
71 * Fired when some component explicitly requested the data refresh.
73 * The provider which exposed the {@link DataRefresher} should republish
74 * its provided data by editing the data in all affected data stores.