1 package org.opendaylight.controller.sal.binding.impl;
3 import java.util.concurrent.ExecutorService;
4 import java.util.concurrent.Future;
6 import org.opendaylight.controller.md.sal.common.api.data.DataReader;
7 import org.opendaylight.controller.md.sal.common.impl.service.AbstractDataBroker;
8 import org.opendaylight.controller.sal.binding.api.data.DataChangeListener;
9 import org.opendaylight.controller.sal.binding.api.data.DataProviderService;
10 import org.opendaylight.controller.sal.binding.impl.util.BindingAwareDataReaderRouter;
11 import org.opendaylight.controller.sal.common.DataStoreIdentifier;
12 import org.opendaylight.yangtools.concepts.Registration;
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14 import org.opendaylight.yangtools.yang.binding.DataRoot;
15 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16 import org.opendaylight.yangtools.yang.common.RpcResult;
19 public class DataBrokerImpl extends AbstractDataBroker<InstanceIdentifier<? extends DataObject>, DataObject, DataChangeListener> implements
20 DataProviderService, AutoCloseable {
22 public DataBrokerImpl() {
23 setDataReadRouter(new BindingAwareDataReaderRouter());
27 public DataTransactionImpl beginTransaction() {
28 return new DataTransactionImpl(this);
33 public <T extends DataRoot> T getData(DataStoreIdentifier store, Class<T> rootType) {
34 throw new UnsupportedOperationException("Deprecated");
39 public <T extends DataRoot> T getData(DataStoreIdentifier store, T filter) {
40 throw new UnsupportedOperationException("Deprecated");
45 public <T extends DataRoot> T getCandidateData(DataStoreIdentifier store, Class<T> rootType) {
46 throw new UnsupportedOperationException("Deprecated");
51 public <T extends DataRoot> T getCandidateData(DataStoreIdentifier store, T filter) {
52 throw new UnsupportedOperationException("Deprecated");
57 public RpcResult<DataRoot> editCandidateData(DataStoreIdentifier store, DataRoot changeSet) {
58 throw new UnsupportedOperationException("Deprecated");
63 public Future<RpcResult<Void>> commit(DataStoreIdentifier store) {
64 throw new UnsupportedOperationException("Deprecated");
69 public DataObject getData(InstanceIdentifier<? extends DataObject> data) {
70 throw new UnsupportedOperationException("Deprecated");
75 public DataObject getConfigurationData(InstanceIdentifier<?> data) {
76 throw new UnsupportedOperationException("Deprecated");
81 public void registerChangeListener(InstanceIdentifier<? extends DataObject> path, DataChangeListener changeListener) {
82 throw new UnsupportedOperationException("Deprecated");
87 public void unregisterChangeListener(InstanceIdentifier<? extends DataObject> path,
88 DataChangeListener changeListener) {
89 throw new UnsupportedOperationException("Deprecated");
93 public void close() throws Exception {